@nethserver/ns8-ui-lib 0.0.51 → 0.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ns8-ui-lib
2
2
 
3
- This library includes [Vue.js](https://vuejs.org/) UI components and mixins used by NethServer 8 UI.
3
+ This library includes [Vue.js](https://vuejs.org/) UI components and mixins used by [NethServer 8](https://github.com/NethServer/ns8-core) UI.
4
4
 
5
5
  In `src/main.js` add the following to globally include NS8 components:
6
6
 
@@ -1248,8 +1248,8 @@ var __vue_staticRenderFns__$n = [];
1248
1248
 
1249
1249
  const __vue_inject_styles__$o = function (inject) {
1250
1250
  if (!inject) return;
1251
- inject("data-v-2bcd6519_0", {
1252
- source: ".progress-bar-container[data-v-2bcd6519]{width:100%;position:relative}.slider[data-v-2bcd6519]{position:absolute;width:100%;height:5px;overflow-x:hidden}.line[data-v-2bcd6519]{position:absolute;opacity:.4;width:100%;height:5px}.progress-line[data-v-2bcd6519]{position:absolute;height:5px}.indeterminate-line[data-v-2bcd6519]{position:absolute;opacity:.4;width:150%;height:5px}.indeterminate-subline[data-v-2bcd6519]{position:absolute;height:5px}.inc[data-v-2bcd6519]{animation:increase-data-v-2bcd6519 2s infinite}.dec[data-v-2bcd6519]{animation:decrease-data-v-2bcd6519 2s .5s infinite}@keyframes increase-data-v-2bcd6519{from{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes decrease-data-v-2bcd6519{from{left:-80%;width:80%}to{left:110%;width:10%}}",
1251
+ inject("data-v-57532057_0", {
1252
+ source: ".progress-bar-container[data-v-57532057]{width:100%;position:relative}.slider[data-v-57532057]{position:absolute;width:100%;height:5px;overflow-x:hidden}.line[data-v-57532057]{position:absolute;opacity:.4;width:100%;height:5px}.progress-line[data-v-57532057]{position:absolute;height:5px}.indeterminate-line[data-v-57532057]{position:absolute;opacity:.4;width:150%;height:5px}.indeterminate-subline[data-v-57532057]{position:absolute;height:5px}.inc[data-v-57532057]{animation:increase-data-v-57532057 2s infinite}.dec[data-v-57532057]{animation:decrease-data-v-57532057 2s .5s infinite}@keyframes increase-data-v-57532057{from{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes decrease-data-v-57532057{from{left:-80%;width:80%}to{left:110%;width:10%}}",
1253
1253
  map: undefined,
1254
1254
  media: undefined
1255
1255
  });
@@ -1257,7 +1257,7 @@ const __vue_inject_styles__$o = function (inject) {
1257
1257
  /* scoped */
1258
1258
 
1259
1259
 
1260
- const __vue_scope_id__$o = "data-v-2bcd6519";
1260
+ const __vue_scope_id__$o = "data-v-57532057";
1261
1261
  /* module identifier */
1262
1262
 
1263
1263
  const __vue_module_identifier__$o = undefined;
@@ -6236,11 +6236,11 @@ var __vue_staticRenderFns__$l = [];
6236
6236
 
6237
6237
  const __vue_inject_styles__$l = function (inject) {
6238
6238
  if (!inject) return;
6239
- inject("data-v-79bd81d3_0", {
6240
- source: ".notification[data-v-79bd81d3]{margin-bottom:0;margin-right:0}.action[data-v-79bd81d3]{padding-top:0;margin-bottom:0}.bx--toast-notification .bx--inline-notification__action-button.bx--btn--ghost[data-v-79bd81d3]{margin-left:-16px}.notification-description-and-progress[data-v-79bd81d3]{margin-top:.75rem;margin-bottom:.75rem}.fix-margin-bottom[data-v-79bd81d3]{margin-bottom:0}.progress[data-v-79bd81d3]{margin-top:.75rem}.progress-bar-spacer[data-v-79bd81d3]{height:.5rem}.cv-notifiation.bx--toast-notification.notification[data-v-79bd81d3]{width:26vw;min-width:20rem;margin-top:0}.notification-drawer .cv-notifiation.bx--toast-notification.notification[data-v-79bd81d3]{margin-top:1rem}.notification-drawer .cv-notifiation.bx--toast-notification.notification[data-v-79bd81d3]{width:100%;cursor:pointer}.notification-read[data-v-79bd81d3]{border-color:#8d8d8d;color:#c6c6c6}.notification-read .bx--toast-notification__icon[data-v-79bd81d3]{fill:currentColor}.notification-read .bx--toast-notification__subtitle[data-v-79bd81d3]{color:#c6c6c6}.notification-read .bx--toast-notification__title[data-v-79bd81d3]{font-weight:400}.cv-notifiation .timestamp[data-v-79bd81d3]{margin-bottom:.75rem;line-height:1.29;color:#fff;text-decoration:underline}.cv-notifiation .timestamp button[data-v-79bd81d3]{color:#c6c6c6}.bx--tooltip__trigger[data-v-79bd81d3]:not(.bx--btn--icon-only){font-size:inherit}.cv-notifiation .timestamp .bx--tooltip__trigger[data-v-79bd81d3]::before{border-bottom-color:#161616}div.row[data-v-79bd81d3]:last-child{margin-bottom:1.5rem}.bx--toast-notification__details[data-v-79bd81d3]{flex-grow:1}",
6239
+ inject("data-v-7385c86a_0", {
6240
+ source: ".notification[data-v-7385c86a]{margin-bottom:0;margin-right:0}.action[data-v-7385c86a]{padding-top:0;margin-bottom:0}.bx--toast-notification .bx--inline-notification__action-button.bx--btn--ghost[data-v-7385c86a]{margin-left:-16px}.notification-description-and-progress[data-v-7385c86a]{margin-top:.75rem;margin-bottom:.75rem}.fix-margin-bottom[data-v-7385c86a]{margin-bottom:0}.progress[data-v-7385c86a]{margin-top:.75rem}.progress-bar-spacer[data-v-7385c86a]{height:.5rem}.cv-notifiation.bx--toast-notification.notification[data-v-7385c86a]{width:26vw;min-width:20rem;margin-top:0}.notification-drawer .cv-notifiation.bx--toast-notification.notification[data-v-7385c86a]{margin-top:1rem}.notification-drawer .cv-notifiation.bx--toast-notification.notification[data-v-7385c86a]{width:100%;cursor:pointer}.notification-read[data-v-7385c86a]{border-color:#8d8d8d;color:#c6c6c6}.notification-read .bx--toast-notification__icon[data-v-7385c86a]{fill:currentColor}.notification-read .bx--toast-notification__subtitle[data-v-7385c86a]{color:#c6c6c6}.notification-read .bx--toast-notification__title[data-v-7385c86a]{font-weight:400}.cv-notifiation .timestamp[data-v-7385c86a]{margin-bottom:.75rem;line-height:1.29;color:#fff;text-decoration:underline}.cv-notifiation .timestamp button[data-v-7385c86a]{color:#c6c6c6}.bx--tooltip__trigger[data-v-7385c86a]:not(.bx--btn--icon-only){font-size:inherit}.cv-notifiation .timestamp .bx--tooltip__trigger[data-v-7385c86a]::before{border-bottom-color:#161616}div.row[data-v-7385c86a]:last-child{margin-bottom:1.5rem}.bx--toast-notification__details[data-v-7385c86a]{flex-grow:1}",
6241
6241
  map: undefined,
6242
6242
  media: undefined
6243
- }), inject("data-v-79bd81d3_1", {
6243
+ }), inject("data-v-7385c86a_1", {
6244
6244
  source: ".cv-notifiation .timestamp button span{background-color:#161616!important;border-left:1px solid #393939;border-right:1px solid #393939;border-bottom:1px solid #393939}",
6245
6245
  map: undefined,
6246
6246
  media: undefined
@@ -6249,7 +6249,7 @@ const __vue_inject_styles__$l = function (inject) {
6249
6249
  /* scoped */
6250
6250
 
6251
6251
 
6252
- const __vue_scope_id__$l = "data-v-79bd81d3";
6252
+ const __vue_scope_id__$l = "data-v-7385c86a";
6253
6253
  /* module identifier */
6254
6254
 
6255
6255
  const __vue_module_identifier__$l = undefined;
@@ -6524,8 +6524,8 @@ var __vue_staticRenderFns__$j = [];
6524
6524
 
6525
6525
  const __vue_inject_styles__$j = function (inject) {
6526
6526
  if (!inject) return;
6527
- inject("data-v-e4a14fb4_0", {
6528
- source: ".status-card[data-v-e4a14fb4]{display:flex;flex-direction:column;justify-content:center}.row[data-v-e4a14fb4]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.value[data-v-e4a14fb4]{margin-left:.25rem;margin-right:.25rem}.label[data-v-e4a14fb4]{margin-left:.25rem;margin-right:.25rem}.success-icon[data-v-e4a14fb4]{margin-right:.25rem}.error-icon[data-v-e4a14fb4]{margin-right:.25rem}.warning-icon[data-v-e4a14fb4]{margin-right:.25rem}.stats[data-v-e4a14fb4]{display:flex;align-items:center;margin-left:.5rem;margin-right:.5rem}",
6527
+ inject("data-v-496044f0_0", {
6528
+ source: ".status-card[data-v-496044f0]{display:flex;flex-direction:column;justify-content:center}.row[data-v-496044f0]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.value[data-v-496044f0]{margin-left:.25rem;margin-right:.25rem}.label[data-v-496044f0]{margin-left:.25rem;margin-right:.25rem}.success-icon[data-v-496044f0]{margin-right:.25rem}.error-icon[data-v-496044f0]{margin-right:.25rem}.warning-icon[data-v-496044f0]{margin-right:.25rem}.stats[data-v-496044f0]{display:flex;align-items:center;margin-left:.5rem;margin-right:.5rem}",
6529
6529
  map: undefined,
6530
6530
  media: undefined
6531
6531
  });
@@ -6533,7 +6533,7 @@ const __vue_inject_styles__$j = function (inject) {
6533
6533
  /* scoped */
6534
6534
 
6535
6535
 
6536
- const __vue_scope_id__$j = "data-v-e4a14fb4";
6536
+ const __vue_scope_id__$j = "data-v-496044f0";
6537
6537
  /* module identifier */
6538
6538
 
6539
6539
  const __vue_module_identifier__$j = undefined;
@@ -6669,8 +6669,8 @@ var __vue_staticRenderFns__$i = [];
6669
6669
 
6670
6670
  const __vue_inject_styles__$i = function (inject) {
6671
6671
  if (!inject) return;
6672
- inject("data-v-e13a5ce6_0", {
6673
- source: ".service-card[data-v-e13a5ce6]{display:flex;flex-direction:column;justify-content:center}.row[data-v-e13a5ce6]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.service-name[data-v-e13a5ce6]{margin-left:.25rem;margin-right:.25rem}.success-icon[data-v-e13a5ce6]{margin-right:.25rem}.error-icon[data-v-e13a5ce6]{margin-right:.25rem}.warning-icon[data-v-e13a5ce6]{margin-right:.25rem}.stats[data-v-e13a5ce6]{display:flex;align-items:center;margin-left:.5rem;margin-right:.5rem}",
6672
+ inject("data-v-3dfcfe29_0", {
6673
+ source: ".service-card[data-v-3dfcfe29]{display:flex;flex-direction:column;justify-content:center}.row[data-v-3dfcfe29]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.service-name[data-v-3dfcfe29]{margin-left:.25rem;margin-right:.25rem}.success-icon[data-v-3dfcfe29]{margin-right:.25rem}.error-icon[data-v-3dfcfe29]{margin-right:.25rem}.warning-icon[data-v-3dfcfe29]{margin-right:.25rem}.stats[data-v-3dfcfe29]{display:flex;align-items:center;margin-left:.5rem;margin-right:.5rem}",
6674
6674
  map: undefined,
6675
6675
  media: undefined
6676
6676
  });
@@ -6678,7 +6678,7 @@ const __vue_inject_styles__$i = function (inject) {
6678
6678
  /* scoped */
6679
6679
 
6680
6680
 
6681
- const __vue_scope_id__$i = "data-v-e13a5ce6";
6681
+ const __vue_scope_id__$i = "data-v-3dfcfe29";
6682
6682
  /* module identifier */
6683
6683
 
6684
6684
  const __vue_module_identifier__$i = undefined;
@@ -6824,7 +6824,7 @@ var UtilService = {
6824
6824
  },
6825
6825
 
6826
6826
  /**
6827
- * Get app description using the locale of NS8 core context
6827
+ * Get app description using the locale of core context
6828
6828
  */
6829
6829
  getAppDescription(app, coreContext) {
6830
6830
  const langCode = coreContext.$root.$i18n.locale;
@@ -6839,7 +6839,7 @@ var UtilService = {
6839
6839
  },
6840
6840
 
6841
6841
  /**
6842
- * Get app categories using the locale of NS8 core context
6842
+ * Get app categories using the locale of core context
6843
6843
  */
6844
6844
  getAppCategories(app, coreContext) {
6845
6845
  let i18nCategories = [];
@@ -7177,8 +7177,8 @@ var __vue_staticRenderFns__$h = [];
7177
7177
 
7178
7178
  const __vue_inject_styles__$h = function (inject) {
7179
7179
  if (!inject) return;
7180
- inject("data-v-af9d89fe_0", {
7181
- source: ".new-password-container[data-v-af9d89fe]{margin-bottom:1rem}.new-password[data-v-af9d89fe]{margin-bottom:.25rem}.confirm-password[data-v-af9d89fe]{margin-bottom:.25rem}.password-meter[data-v-af9d89fe]{display:flex}@media (min-width:672px){.password-meter[data-v-af9d89fe]{max-width:38rem}}.requirement[data-v-af9d89fe]{padding:.2rem;margin-left:.2rem;margin-right:.2rem;background-color:#f4f4f4;text-align:center;font-size:.75rem;line-height:1.34;letter-spacing:.32px}.requirement-light[data-v-af9d89fe]{background-color:#fff}.requirement[data-v-af9d89fe]:first-child{margin-left:0}.requirement-ok[data-v-af9d89fe]{color:#fff;background-color:#198038}.requirement-disabled[data-v-af9d89fe]{color:#c6c6c6;background-color:#f4f4f4}",
7180
+ inject("data-v-6ed70bae_0", {
7181
+ source: ".new-password-container[data-v-6ed70bae]{margin-bottom:1rem}.new-password[data-v-6ed70bae]{margin-bottom:.25rem}.confirm-password[data-v-6ed70bae]{margin-bottom:.25rem}.password-meter[data-v-6ed70bae]{display:flex}@media (min-width:672px){.password-meter[data-v-6ed70bae]{max-width:38rem}}.requirement[data-v-6ed70bae]{padding:.2rem;margin-left:.2rem;margin-right:.2rem;background-color:#f4f4f4;text-align:center;font-size:.75rem;line-height:1.34;letter-spacing:.32px}.requirement-light[data-v-6ed70bae]{background-color:#fff}.requirement[data-v-6ed70bae]:first-child{margin-left:0}.requirement-ok[data-v-6ed70bae]{color:#fff;background-color:#198038}.requirement-disabled[data-v-6ed70bae]{color:#c6c6c6;background-color:#f4f4f4}",
7182
7182
  map: undefined,
7183
7183
  media: undefined
7184
7184
  });
@@ -7186,7 +7186,7 @@ const __vue_inject_styles__$h = function (inject) {
7186
7186
  /* scoped */
7187
7187
 
7188
7188
 
7189
- const __vue_scope_id__$h = "data-v-af9d89fe";
7189
+ const __vue_scope_id__$h = "data-v-6ed70bae";
7190
7190
  /* module identifier */
7191
7191
 
7192
7192
  const __vue_module_identifier__$h = undefined;
@@ -8300,7 +8300,7 @@ var __vue_render__$a = function () {
8300
8300
  staticClass: "td label"
8301
8301
  }, [_vm._v(_vm._s(_vm.totalFileCountLabel))]), _vm._v(" "), _c('div', {
8302
8302
  staticClass: "td"
8303
- }, [_vm.status[_vm.backup.id] && _vm.status[_vm.backup.id].total_file_count ? _c('span', [_vm._v("\n " + _vm._s(_vm._f("humanFormat")(_vm.status[_vm.backup.id].total_file_count)) + "\n (" + _vm._s(_vm.status[_vm.backup.id].total_file_count) + ")\n ")]) : _c('span', [_vm._v("-")])])])]);
8303
+ }, [_vm.status[_vm.backup.id] && _vm.status[_vm.backup.id].total_file_count ? _c('span', [_vm._v("\n " + _vm._s(_vm.status[_vm.backup.id].total_file_count) + "\n ")]) : _c('span', [_vm._v("-")])])])]);
8304
8304
  };
8305
8305
 
8306
8306
  var __vue_staticRenderFns__$a = [];
@@ -8308,8 +8308,8 @@ var __vue_staticRenderFns__$a = [];
8308
8308
 
8309
8309
  const __vue_inject_styles__$a = function (inject) {
8310
8310
  if (!inject) return;
8311
- inject("data-v-61bac27a_0", {
8312
- source: ".ns-backup-card-details[data-v-61bac27a]{display:contents}.tr[data-v-61bac27a]{display:table-row}.td[data-v-61bac27a]{display:table-cell}.label[data-v-61bac27a]{padding-right:.75rem;font-weight:700;text-align:right;padding-bottom:.5rem}",
8311
+ inject("data-v-25453d1c_0", {
8312
+ source: ".ns-backup-card-details[data-v-25453d1c]{display:contents}.tr[data-v-25453d1c]{display:table-row}.td[data-v-25453d1c]{display:table-cell}.label[data-v-25453d1c]{padding-right:.75rem;font-weight:700;text-align:right;padding-bottom:.5rem}",
8313
8313
  map: undefined,
8314
8314
  media: undefined
8315
8315
  });
@@ -8317,7 +8317,7 @@ const __vue_inject_styles__$a = function (inject) {
8317
8317
  /* scoped */
8318
8318
 
8319
8319
 
8320
- const __vue_scope_id__$a = "data-v-61bac27a";
8320
+ const __vue_scope_id__$a = "data-v-25453d1c";
8321
8321
  /* module identifier */
8322
8322
 
8323
8323
  const __vue_module_identifier__$a = undefined;
@@ -8850,7 +8850,9 @@ var script$1 = {
8850
8850
  Power20,
8851
8851
  Rocket20,
8852
8852
  Launch20,
8853
- Star20
8853
+ Star20,
8854
+ Reset20,
8855
+ Save20
8854
8856
  },
8855
8857
  props: {
8856
8858
  label: {
@@ -8859,7 +8861,7 @@ var script$1 = {
8859
8861
  },
8860
8862
  icon: {
8861
8863
  type: String,
8862
- validator: value => ["", "edit", "trash", "power", "rocket", "launch", "star"].includes(value)
8864
+ validator: value => ["", "edit", "trash", "power", "rocket", "launch", "star", "reset", "save"].includes(value)
8863
8865
  }
8864
8866
  },
8865
8867
  computed: {
@@ -8895,7 +8897,11 @@ var __vue_render__$7 = function () {
8895
8897
  staticClass: "icon"
8896
8898
  }, [_c('Launch20')], 1) : _vm.icon == 'star' ? _c('span', {
8897
8899
  staticClass: "icon"
8898
- }, [_c('Star20')], 1) : _vm.hasIconSlot ? _c('span', {
8900
+ }, [_c('Star20')], 1) : _vm.icon == 'reset' ? _c('span', {
8901
+ staticClass: "icon"
8902
+ }, [_c('Reset20')], 1) : _vm.icon == 'save' ? _c('span', {
8903
+ staticClass: "icon"
8904
+ }, [_c('Save20')], 1) : _vm.hasIconSlot ? _c('span', {
8899
8905
  staticClass: "icon"
8900
8906
  }, [_vm._t("icon")], 2) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.label))])]);
8901
8907
  };
@@ -8905,8 +8911,8 @@ var __vue_staticRenderFns__$7 = [];
8905
8911
 
8906
8912
  const __vue_inject_styles__$7 = function (inject) {
8907
8913
  if (!inject) return;
8908
- inject("data-v-6f0a7acc_0", {
8909
- source: ".ns-menu-item[data-v-6f0a7acc]{display:flex;align-items:center}.icon[data-v-6f0a7acc]{margin-right:.5rem}",
8914
+ inject("data-v-9440af88_0", {
8915
+ source: ".ns-menu-item[data-v-9440af88]{display:flex;align-items:center}.icon[data-v-9440af88]{margin-right:.5rem}",
8910
8916
  map: undefined,
8911
8917
  media: undefined
8912
8918
  });
@@ -8914,7 +8920,7 @@ const __vue_inject_styles__$7 = function (inject) {
8914
8920
  /* scoped */
8915
8921
 
8916
8922
 
8917
- const __vue_scope_id__$7 = "data-v-6f0a7acc";
8923
+ const __vue_scope_id__$7 = "data-v-9440af88";
8918
8924
  /* module identifier */
8919
8925
 
8920
8926
  const __vue_module_identifier__$7 = undefined;
@@ -9247,7 +9253,7 @@ var __vue_component__$1 = __vue_component__;
9247
9253
  var queryParam = {
9248
9254
  name: "QueryParamService",
9249
9255
  methods: {
9250
- // used by NS8 core and external apps to dynamically register a watch for every object inside data.q
9256
+ // used by core and external apps to dynamically register a watch for every object inside data.q
9251
9257
  watchQueryData(context) {
9252
9258
  if (context.q) {
9253
9259
  Object.keys(context.q).forEach(dataItem => {
@@ -9285,10 +9291,10 @@ var queryParam = {
9285
9291
  queryParams.push(key + "=" + encodeURIComponent(value));
9286
9292
  }
9287
9293
 
9288
- const urlWithParams = window.parent.ns8.$route.path + "?" + queryParams.join("&");
9294
+ const urlWithParams = window.parent.core.$route.path + "?" + queryParams.join("&");
9289
9295
 
9290
- if (window.parent.ns8.$route.fullPath != urlWithParams) {
9291
- window.parent.ns8.$router.replace(urlWithParams);
9296
+ if (window.parent.core.$route.fullPath != urlWithParams) {
9297
+ window.parent.core.$router.replace(urlWithParams);
9292
9298
  }
9293
9299
  },
9294
9300
 
@@ -9359,7 +9365,7 @@ var queryParam = {
9359
9365
  }
9360
9366
  },
9361
9367
 
9362
- // used only by NS8 core to extract query parameters from URL
9368
+ // used only by core to extract query parameters from URL
9363
9369
  getQueryParamsForCore() {
9364
9370
  if (!window.location.hash.includes("?") || window.location.hash.split("?").length < 2) {
9365
9371
  return {};
@@ -9454,7 +9460,7 @@ var task = {
9454
9460
 
9455
9461
  createClusterTaskForApp(taskData) {
9456
9462
  const token = this.getFromStorage("loginInfo") ? this.getFromStorage("loginInfo").token : "";
9457
- return this.axios.post(`${window.parent.ns8.$root.apiUrl}/cluster/tasks`, taskData, {
9463
+ return this.axios.post(`${window.parent.core.$root.apiUrl}/cluster/tasks`, taskData, {
9458
9464
  headers: {
9459
9465
  Authorization: `Bearer ${token}`
9460
9466
  }
@@ -9463,7 +9469,7 @@ var task = {
9463
9469
 
9464
9470
  createModuleTaskForApp(moduleId, taskData) {
9465
9471
  const token = this.getFromStorage("loginInfo") ? this.getFromStorage("loginInfo").token : "";
9466
- return this.axios.post(`${window.parent.ns8.$root.apiUrl}/module/${moduleId}/tasks`, taskData, {
9472
+ return this.axios.post(`${window.parent.core.$root.apiUrl}/module/${moduleId}/tasks`, taskData, {
9467
9473
  headers: {
9468
9474
  Authorization: `Bearer ${token}`
9469
9475
  }
@@ -9480,8 +9486,8 @@ var task = {
9480
9486
  },
9481
9487
 
9482
9488
  getTaskTitle(task) {
9483
- if (task && task.context && task.context.data && task.context.data.title) {
9484
- return task.context.data.title;
9489
+ if (task && task.context && task.context.extra && task.context.extra.title) {
9490
+ return task.context.extra.title;
9485
9491
  } else {
9486
9492
  return "";
9487
9493
  }
@@ -9522,28 +9528,40 @@ var task = {
9522
9528
  },
9523
9529
 
9524
9530
  getTaskStatusDescription(task, rootTask = true) {
9525
- const taskAction = task.context.action;
9531
+ let taskLabel = task.context.action; // use taskName instead of action, if available
9532
+
9533
+ if (task.context.extra && task.context.extra.taskName) {
9534
+ taskLabel = task.context.extra.taskName;
9535
+ }
9536
+
9526
9537
  const taskOrSubtask = rootTask ? "task" : "subtask";
9538
+ let taskPrefix = "";
9539
+
9540
+ if (task.result && task.result.file) {
9541
+ taskPrefix = task.result.file.split("task/")[0];
9542
+ }
9543
+
9544
+ taskLabel = taskPrefix + taskLabel;
9527
9545
 
9528
9546
  switch (task.status) {
9529
9547
  case "aborted":
9530
9548
  return this.$t("task." + taskOrSubtask + "_failed", {
9531
- action: taskAction
9549
+ task: taskLabel
9532
9550
  });
9533
9551
 
9534
9552
  case "validation-failed":
9535
9553
  return this.$t("task." + taskOrSubtask + "_failed_validation", {
9536
- action: taskAction
9554
+ task: taskLabel
9537
9555
  });
9538
9556
 
9539
9557
  case "completed":
9540
9558
  return this.$t("task." + taskOrSubtask + "_completed", {
9541
- action: taskAction
9559
+ task: taskLabel
9542
9560
  });
9543
9561
 
9544
9562
  case "pending":
9545
9563
  return this.$t("task." + taskOrSubtask + "_pending", {
9546
- action: taskAction
9564
+ task: taskLabel
9547
9565
  });
9548
9566
 
9549
9567
  default:
@@ -9558,7 +9576,7 @@ var task = {
9558
9576
 
9559
9577
  createErrorNotificationForApp(err, message) {
9560
9578
  console.error(err);
9561
- window.parent.ns8.$root.$emit("createErrorNotification", err, message);
9579
+ window.parent.core.$root.$emit("createErrorNotification", err, message);
9562
9580
  }
9563
9581
 
9564
9582
  }
@@ -9635,7 +9653,7 @@ var pageTitle = {
9635
9653
  const pageTitle = getPageTitle(this);
9636
9654
 
9637
9655
  if (pageTitle) {
9638
- // window.document would be ok for NS8 core, but with window.parent.document we support external apps too (window.parent == window, if it's the root window)
9656
+ // window.document would be ok for core, but with window.parent.document we support external apps too (window.parent == window, if it's the root window)
9639
9657
  window.parent.document.title = pageTitle;
9640
9658
  }
9641
9659
  }