@nethserver/ns8-ui-lib 0.0.74 → 0.0.77

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethserver/ns8-ui-lib",
3
- "version": "0.0.74",
3
+ "version": "0.0.77",
4
4
  "description": "Vue.js library for NethServer 8 UI",
5
5
  "keywords": [
6
6
  "nethserver",
@@ -62,9 +62,14 @@ export default {
62
62
  },
63
63
  },
64
64
  created() {
65
- this.timeLimitSeconds = (this.timeLimit - 1000) / 1000;
65
+ this.timeLimitSeconds = this.timeLimit / 1000;
66
66
  this.timeLeft = this.timeLimitSeconds;
67
67
 
68
+ this.$nextTick(() => {
69
+ this.timePassed += 1;
70
+ this.timeLeft = this.timeLimitSeconds - this.timePassed;
71
+ });
72
+
68
73
  this.timerInterval = setInterval(() => {
69
74
  this.timePassed += 1;
70
75
  this.timeLeft = this.timeLimitSeconds - this.timePassed;
@@ -40,7 +40,7 @@
40
40
 
41
41
  <!-- cancel button -->
42
42
  <div
43
- v-if="isProgressShown"
43
+ v-if="isCancelShown && isProgressShown"
44
44
  :class="[
45
45
  `${carbonPrefix}--toast-notification__caption`,
46
46
  `action`,
@@ -143,6 +143,10 @@ export default {
143
143
  type: Boolean,
144
144
  default: false,
145
145
  },
146
+ isCancelShown: {
147
+ type: Boolean,
148
+ default: false,
149
+ },
146
150
  cancelLabel: { type: String, default: "Abort" },
147
151
  confirmCancelLabel: { type: String, default: "Confirm abort" },
148
152
  closeAriaLabel: { type: String, default: "Dismiss notification" },
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <path
3
+ id="user_1_"
4
+ d="M31.36,31h-0.72c0-6.432-4.777-12.232-11.359-13.792c-0.15-0.036-0.261-0.163-0.275-0.317
5
+ c-0.015-0.153,0.071-0.299,0.212-0.362c2.861-1.273,4.71-4.116,4.71-7.241c0-4.371-3.556-7.927-7.927-7.927
6
+ c-4.372,0-7.928,3.556-7.928,7.927c0,3.125,1.849,5.968,4.711,7.241c0.141,0.063,0.226,0.209,0.212,0.362
7
+ c-0.014,0.154-0.125,0.281-0.275,0.317C6.137,18.768,1.36,24.568,1.36,31H0.64c0-6.46,4.574-12.312,11.002-14.248
8
+ c-2.634-1.539-4.291-4.375-4.291-7.465c0-4.768,3.879-8.647,8.648-8.647c4.768,0,8.647,3.879,8.647,8.647
9
+ c0,3.09-1.656,5.926-4.29,7.465C26.786,18.688,31.36,24.54,31.36,31z"
10
+ />
11
+ </template>