Skip to content

Commit

Permalink
ui. Display a notice for disabled updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePrincipi committed Nov 25, 2024
1 parent 7718ad8 commit dd5c7fb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/ui/public/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,8 @@
"num_instances_updated": "{numInstances} instances updated",
"n_instances_will_be_updated_c": "Update of {num} instance will start in a moment... | Update of {num} instances will start in a moment...",
"version_version_available": "Version {version} available",
"updates_disabled_ns7_migration_title": "Updates are suspended",
"updates_disabled_ns7_migration_description": "There is an ongoing NS7 migration. Updates will resume once the migration is complete.",
"app_categories": {
"core": "Core",
"development": "Development",
Expand Down
17 changes: 17 additions & 0 deletions core/ui/src/views/SoftwareCenter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,18 @@
/>
</cv-column>
</cv-row>
<cv-row v-if="updatesAreDisabledForMigration">
<cv-column>
<NsInlineNotification
kind="info"
:title="$t('software_center.updates_disabled_ns7_migration_title')"
:description="
$tc('software_center.updates_disabled_ns7_migration_description')
"
:showCloseButton="false"
/>
</cv-column>
</cv-row>
<div>
<cv-search
:label="$t('software_center.search_placeholder')"
Expand Down Expand Up @@ -437,6 +449,11 @@ export default {
.filter((repository) => repository.testing)
.map((repository) => repository.name);
},
updatesAreDisabledForMigration() {
return this.modules.some(
(m) => m["disabled_updates_reason"] == "ns7_migration"
);
},
},
watch: {
"q.search": function () {
Expand Down

0 comments on commit dd5c7fb

Please sign in to comment.