@@ -6,12 +6,12 @@ import {
66} from "components/terminal" ;
77import toast from "components/toast" ;
88import alert from "dialogs/alert" ;
9+ import confirm from "dialogs/confirm" ;
910import loader from "dialogs/loader" ;
1011import fonts from "lib/fonts" ;
1112import appSettings from "lib/settings" ;
1213import FileBrowser from "pages/fileBrowser" ;
1314import helpers from "utils/helpers" ;
14- import confirm from "dialogs/confirm" ;
1515
1616export default function terminalSettings ( ) {
1717 const title = strings [ "terminal settings" ] ;
@@ -214,22 +214,25 @@ export default function terminalSettings() {
214214 return ;
215215
216216 case "uninstall" :
217- const confirmation = await confirm ( strings . confirm , "Are you sure you want to uninstall the terminal?" ) ;
217+ const confirmation = await confirm (
218+ strings . confirm ,
219+ "Are you sure you want to uninstall the terminal?" ,
220+ ) ;
218221 if ( confirmation ) {
219222 loader . showTitleLoader ( ) ;
220223 Terminal . uninstall ( )
221224 . then ( ( ) => {
222225 loader . removeTitleLoader ( ) ;
223226 alert (
224- strings . success . toUpperCase ( ) ,
225- "Terminal uninstalled successfully." ,
226- ) ;
227- } )
228- . catch ( ( error ) => {
229- loader . removeTitleLoader ( ) ;
230- console . error ( "Terminal uninstall failed:" , error ) ;
231- helpers . error ( error ) ;
232- } ) ;
227+ strings . success . toUpperCase ( ) ,
228+ "Terminal uninstalled successfully." ,
229+ ) ;
230+ } )
231+ . catch ( ( error ) => {
232+ loader . removeTitleLoader ( ) ;
233+ console . error ( "Terminal uninstall failed:" , error ) ;
234+ helpers . error ( error ) ;
235+ } ) ;
233236 }
234237 return ;
235238
0 commit comments