Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
More of same typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
noaaroland committed Sep 28, 2022
1 parent a77c26f commit d4b0698
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<p-dialog [style]="{width: '80%'}" [(visible)]="edit_dataset_update" header="{{dataset_title}}" (onHide)="close()">
<h3>Update Specification</h3>
<div class="p-field">
<input placeholder="cron format" id="update" aria-describedby="update-help" class="p-inputtext-lg" [(ngModel)]="cron_spec" pInputText />
<input placeholder="cron format" type="text" id="update" aria-describedby="update-help" class="p-inputtext-lg" [(ngModel)]="cron_spec" pInputText />
<p></p>
<h4 id="update-help">Use an expression in cron format to specify how often this data set gets updated.</h4>
<p class="eightp">Expression should be made up of 6 parts.</p>
Expand All @@ -19,8 +19,8 @@ <h4 id="update-help">Use an expression in cron format to specify how often this
<p class="eightp"><strong>0 15 0,12 * * ?</strong> updates every day at 15 past midnight and 15 past noon.</p>
<p class="eightp"><strong>0 0 12 ? * 3</strong> updates every Tuesday at noon.</p>
<p class="eightp"><strong>0 45 13 5 * ?</strong> updates at 1:45 pm on the fifth of every month.</p>
<h4>To cancel an existing update just use a BLANK entry.</h4>
<h4>To cancel an existing update just use the word "cancel" as the entry.</h4>
<p class="eightp">You can read more about <a target="_blank" href="http://www.quartz-scheduler.org/documentation/quartz-2.2.2/tutorials/tutorial-lesson-06.html">cron expressions in the Quartz documentation.</a></p>
</div>
<button pButton class="p-button-primary" (click)="save()" label="Save"></button>
<button pButton class="p-button-primary" type=submit (click)="save()" label="Save"></button>
</p-dialog>
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,19 @@ export class DatasetUpdateComponent implements OnInit {

this.stateChanges = this.applicationStateService.stateChanged.subscribe(state => {
if (state) {
this.update_dataset = state.dataset_to_edit_updates;
if ( this.update_dataset ) {
this.edit_dataset_update = true;
this.dataset_title = this.update_dataset.title;
if (this.update_dataset.datasetProperties) {
for (let i = 0; i < this.update_dataset.datasetProperties.length; i++) {
let property: DatasetProperty = this.update_dataset.datasetProperties[i];
if ( property.type == 'update') {
this.cron_spec = property.value;
this.update_property = property;
// If it's show progress we're doing an update so don't set the form
if (!state.showProgress) {
this.update_dataset = state.dataset_to_edit_updates;
if (this.update_dataset) {
this.edit_dataset_update = true;
this.dataset_title = this.update_dataset.title;
if (this.update_dataset.datasetProperties) {
for (let i = 0; i < this.update_dataset.datasetProperties.length; i++) {
let property: DatasetProperty = this.update_dataset.datasetProperties[i];
if (property.type == 'update') {
this.cron_spec = property.value;
this.update_property = property;
}
}
}
}
Expand All @@ -57,7 +60,7 @@ export class DatasetUpdateComponent implements OnInit {
save() {
let update: UpdateSpec = new class implements UpdateSpec {
cron_spec: string;
datset: any;
dataset: any;
};
this.applicationStateService.setForRequest();
update["cron_spec"] = this.cron_spec;
Expand Down

0 comments on commit d4b0698

Please sign in to comment.