Skip to content

Commit

Permalink
NAS-133479 / 25.04 / HA notice showing on a single system (#11322)
Browse files Browse the repository at this point in the history
* NAS-133479: HA notice showing on a single system

* NAS-133479: PR Update

* NAS-133479: NAS_133479: PR Update
  • Loading branch information
AlexKarpov98 authored Jan 10, 2025
1 parent f7e277d commit 1b1d809
Show file tree
Hide file tree
Showing 90 changed files with 110 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class ManualUpdateFormComponent implements OnInit {
hideCheckbox: true,
buttonText: helptext.ha_update.complete_action,
hideCancel: true,
}).pipe(untilDestroyed(this)).subscribe(() => {});
}).pipe(untilDestroyed(this)).subscribe();
}

handleUpdateSuccess(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,26 @@ export class UpdateActionsCardComponent implements OnInit {
});
}

private finishHaUpdate(): Observable<boolean> {
return this.dialogService.confirm({
title: helptext.ha_update.complete_title,
message: helptext.ha_update.complete_msg,
buttonText: helptext.ha_update.complete_action,
hideCheckbox: true,
hideCancel: true,
});
}

private finishNonHaUpdate(): Observable<boolean> {
return this.dialogService.confirm({
title: helptext.ha_update.complete_title,
message: this.translate.instant('Update completed successfully. The system will reboot shortly'),
buttonText: helptext.ha_update.complete_action,
hideCheckbox: true,
hideCancel: true,
});
}

private update(resume = false): void {
this.window.sessionStorage.removeItem('updateLastChecked');
this.window.sessionStorage.removeItem('updateAvailable');
Expand All @@ -308,13 +328,7 @@ export class UpdateActionsCardComponent implements OnInit {
this.isUpdateRunning = false;
this.sysGenService.updateDone(); // Send 'finished' signal to topbar
this.cdr.markForCheck();
return this.dialogService.confirm({
title: helptext.ha_update.complete_title,
message: helptext.ha_update.complete_msg,
hideCheckbox: true,
buttonText: helptext.ha_update.complete_action,
hideCancel: true,
});
return this.isHaLicensed ? this.finishHaUpdate() : this.finishNonHaUpdate();
}),
this.errorHandler.catchError(),
untilDestroyed(this),
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/az.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/be.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/br.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/bs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4100,6 +4100,7 @@
"Unset to disable the scheduled scrub without deleting it.": "",
"Unset to disable this service without deleting it.": "",
"Update Members": "",
"Update completed successfully. The system will reboot shortly": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updating Instance": "",
"Updating custom app": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/cy.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -3523,6 +3523,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
"Updated Date": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/dsb.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en-au.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en-gb.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/eo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"Table Actions of Expandable Table": "",
"USB Passthrough Device": "",
"Unlock Child Encrypted Roots": "",
"Update completed successfully. The system will reboot shortly": "",
"Virtualization (Old)": "",
"Virtualization Method": "",
"everyone@": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-co.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-mx.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-ni.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-ve.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4370,6 +4370,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
"Updated Date": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/et.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@
"URL": "",
"Unix NSS Info": "",
"Unlink": "",
"Update completed successfully. The system will reboot shortly": "",
"Usage Collection": "",
"Usages": "",
"User API Keys": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/fy.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ga.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@
"Unexpected power loss necessitating a restart.": "",
"Unresponsive system necessitating a forced restart.": "",
"Unsaved Changes": "",
"Update completed successfully. The system will reboot shortly": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updating Instance": "",
"Updating custom app": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/gd.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/gl.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/hsb.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ia.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@
"Update System": "",
"Update TrueCommand Settings": "",
"Update available": "",
"Update completed successfully. The system will reboot shortly": "",
"Update in Progress": "",
"Update successful. Please restart for the update to take effect. Restart now?": "",
"Updated 'Use as Home Share'": "",
Expand Down
Loading

0 comments on commit 1b1d809

Please sign in to comment.