File tree Expand file tree Collapse file tree 4 files changed +7
-13
lines changed
packages/desktop-ui-lib/src/lib/agent-dashboard Expand file tree Collapse file tree 4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -167,14 +167,15 @@ async function appReady() {
167167 await ensureScreenshotDir ( ) ;
168168 const configs : any = store . get ( 'configs' ) ;
169169 const settings = getAppSetting ( ) ;
170- if ( ! settings ) {
170+ if ( ! settings || ( ! Object . keys ( settings ) . length ) ) {
171171 launchAtStartup ( true , false ) ;
172172 LocalStore . setAllDefaultConfig ( ) ;
173173
174174 /* Set default application setting for agent app. */
175175 LocalStore . updateApplicationSetting ( {
176176 screenshotNotification : false ,
177- simpleScreenshotNotification : false
177+ simpleScreenshotNotification : false ,
178+ alwaysOn : false
178179 } ) ;
179180 }
180181
Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ export default function AppIpcMain() {
190190 throw new AppError ( 'GET_EMP_SETTING' , error ) ;
191191 }
192192 listenIO ( false ) ;
193- await handleAlwaysOnWindow ( true ) ;
193+ const appSetting = getAppSetting ( ) ;
194+ if ( appSetting ?. alwaysOn ) {
195+ await handleAlwaysOnWindow ( true ) ;
196+ }
194197 await closeLoginWindow ( ) ;
195198 } ) ;
196199
Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ export const agentDashboardRoutes: Routes = [
99 path : 'sync-activity' ,
1010 loadComponent : ( ) => import ( './activity-sync/activity-sync.component' ) . then ( ( m ) => m . SyncPageComponent ) ,
1111 } ,
12- {
13- path : 'tasks' ,
14- loadChildren : ( ) => import ( '../time-tracker/task-table/task-table.routing.module' ) . then ( ( m ) => m . taskTableRoutes )
15- } ,
1612 {
1713 path : '' ,
1814 redirectTo : 'logs' ,
Original file line number Diff line number Diff line change @@ -14,12 +14,6 @@ import { TasksService } from './services/tasks-service';
1414} )
1515export class AgentDashboardComponent implements OnInit , OnDestroy {
1616 menu : NbMenuItem [ ] = [
17- {
18- title : 'Tasks' ,
19- link : '/server-dashboard/tasks' ,
20- icon : 'checkmark-square-2-outline' ,
21- pathMatch : 'prefix'
22- } ,
2317 {
2418 title : 'Logs' ,
2519 link : '/server-dashboard/logs' , // Assuming this will be the route for logs
You can’t perform that action at this time.
0 commit comments