You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dg...@apache.org on 2020/09/24 12:36:38 UTC

[incubator-dlab] branch DLAB-1101 created (now 929c887)

This is an automated email from the ASF dual-hosted git repository.

dgnatyshyn pushed a change to branch DLAB-1101
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.


      at 929c887  [DLAB-1101]: Fixed 'Default timezone_offset' is rewritten if switching scheduler types for notebook

This branch includes the following new commits:

     new 929c887  [DLAB-1101]: Fixed 'Default timezone_offset' is rewritten if switching scheduler types for notebook

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org


[incubator-dlab] 01/01: [DLAB-1101]: Fixed 'Default timezone_offset' is rewritten if switching scheduler types for notebook

Posted by dg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dgnatyshyn pushed a commit to branch DLAB-1101
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 929c8877c1c338e47c92178ed72a89c1764aadfc
Author: Dmytro_Gnatyshyn <di...@ukr.net>
AuthorDate: Thu Sep 24 15:36:17 2020 +0300

    [DLAB-1101]: Fixed 'Default timezone_offset' is rewritten if switching scheduler types for notebook
---
 .../webapp/src/app/resources/scheduler/scheduler.component.ts         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/scheduler/scheduler.component.ts b/services/self-service/src/main/resources/webapp/src/app/resources/scheduler/scheduler.component.ts
index c923677..845b9ad 100644
--- a/services/self-service/src/main/resources/webapp/src/app/resources/scheduler/scheduler.component.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/resources/scheduler/scheduler.component.ts
@@ -148,6 +148,7 @@ export class SchedulerComponent implements OnInit {
   }
 
   public toggleSchedule($event) {
+    console.log(this.tzOffset);
     this.enableSchedule = $event.checked;
     this.timeReqiered = false;
     this.allowInheritView = this.destination.type === 'СOMPUTATIONAL' || this.checkIsActiveSpark();
@@ -280,11 +281,10 @@ export class SchedulerComponent implements OnInit {
           params.start_days_repeat.filter(key => (this.selectedStartWeekDays[key.toLowerCase()] = true));
           params.stop_days_repeat.filter(key => (this.selectedStopWeekDays[key.toLowerCase()] = true));
           this.inherit = params.sync_start_required;
-          this.tzOffset = params.timezone_offset;
+          this.tzOffset = params.timezone_offset ? params.timezone_offset : this.tzOffset;
           this.startTime = params.start_time ? SchedulerCalculations.convertTimeFormat(params.start_time) : null;
           this.endTime = params.end_time ? SchedulerCalculations.convertTimeFormat(params.end_time) : null;
           this.formInit(params.begin_date, params.finish_date, params.terminate_datetime);
-          console.log();
           this.schedulerForm.controls.inactivityTime.setValue(params.max_inactivity || this.inactivityLimits.min);
           this.enableIdleTime = params.check_inactivity_required;
           this.considerInactivity = params.consider_inactivity || false;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org