@piveau/piveau-hub-ui-modules 4.6.32 → 4.6.33
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/dist/data-provider-interface/DPIMenu.vue.d.ts +3 -1
- package/dist/data-provider-interface/DPIMenu.vue.mjs +175 -121
- package/dist/data-provider-interface/DPIMenu.vue.mjs.map +1 -1
- package/dist/data-provider-interface/components/Navigation.vue.mjs +55 -55
- package/dist/data-provider-interface/components/Navigation.vue.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
2
|
scrollToTop: () => void;
|
|
3
3
|
}, {
|
|
4
|
+
showRatingService: any;
|
|
4
5
|
visible: boolean;
|
|
5
6
|
modal: {
|
|
6
7
|
show: boolean;
|
|
@@ -123,6 +124,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
123
124
|
}[];
|
|
124
125
|
isLocatedOnAuthorizedDatasetPage(): any;
|
|
125
126
|
isLocatedOnAuthorizedCatalogPage(): boolean;
|
|
127
|
+
isOperator(): any;
|
|
126
128
|
getUserData: import('vuex').Computed;
|
|
127
129
|
getTitle: import('vuex').Computed;
|
|
128
130
|
getDescription: import('vuex').Computed;
|
|
@@ -140,7 +142,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
140
142
|
catalog: any;
|
|
141
143
|
type?: string | undefined;
|
|
142
144
|
}): Promise<void>;
|
|
143
|
-
handleMarkAsDraft({ id, catalog, title, description
|
|
145
|
+
handleMarkAsDraft({ id, catalog, title, description }: {
|
|
144
146
|
id: any;
|
|
145
147
|
catalog: any;
|
|
146
148
|
title: any;
|
|
@@ -4,17 +4,19 @@ import "lodash-es";
|
|
|
4
4
|
import { mapGetters as $, mapActions as k } from "vuex";
|
|
5
5
|
import T from "./components/Dropup.vue.mjs";
|
|
6
6
|
import { useWindowScroll as U } from "../external/@vueuse/core/index";
|
|
7
|
-
import { resolveComponent as f, openBlock as u, createElementBlock as
|
|
7
|
+
import { resolveComponent as f, openBlock as u, createElementBlock as h, createElementVNode as l, toDisplayString as c, createTextVNode as d, Fragment as y, renderList as b, createBlock as v, resolveDynamicComponent as q, normalizeClass as _, withCtx as D, renderSlot as O, createVNode as C, createCommentVNode as P } from "vue";
|
|
8
8
|
import "./DPIMenu.vue2.mjs";
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import S from "../_virtual/_plugin-vue_export-helper.mjs";
|
|
10
|
+
const z = {
|
|
11
11
|
name: "DPI-menu",
|
|
12
12
|
components: {
|
|
13
13
|
Dropup: T
|
|
14
14
|
},
|
|
15
15
|
props: {},
|
|
16
16
|
data() {
|
|
17
|
+
var e;
|
|
17
18
|
return {
|
|
19
|
+
showRatingService: (e = this.$env.content.datasetDetails) == null ? void 0 : e.showRatingService,
|
|
18
20
|
visible: !0,
|
|
19
21
|
modal: {
|
|
20
22
|
show: !1,
|
|
@@ -29,8 +31,8 @@ const L = {
|
|
|
29
31
|
setup() {
|
|
30
32
|
return {
|
|
31
33
|
scrollToTop: () => {
|
|
32
|
-
let { x:
|
|
33
|
-
|
|
34
|
+
let { x: t, y: r } = U({ behavior: "smooth" });
|
|
35
|
+
r.value = 0;
|
|
34
36
|
}
|
|
35
37
|
};
|
|
36
38
|
},
|
|
@@ -42,9 +44,7 @@ const L = {
|
|
|
42
44
|
"getTitle",
|
|
43
45
|
"getDescription"
|
|
44
46
|
]),
|
|
45
|
-
...$("auth", [
|
|
46
|
-
"getUserData"
|
|
47
|
-
]),
|
|
47
|
+
...$("auth", ["getUserData"]),
|
|
48
48
|
menuGroups() {
|
|
49
49
|
return [
|
|
50
50
|
{
|
|
@@ -66,9 +66,17 @@ const L = {
|
|
|
66
66
|
handler: () => {
|
|
67
67
|
this.modal = {
|
|
68
68
|
...this.modal,
|
|
69
|
-
message: this.$t(
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
message: this.$t(
|
|
70
|
+
"message.dataupload.menu.datasetDeletion.message"
|
|
71
|
+
),
|
|
72
|
+
confirm: this.$t(
|
|
73
|
+
"message.dataupload.menu.datasetDeletion.confirm"
|
|
74
|
+
),
|
|
75
|
+
confirmHandler: () => this.handleDelete({
|
|
76
|
+
id: this.getID,
|
|
77
|
+
property: "datasets",
|
|
78
|
+
catalog: this.getCatalog.id
|
|
79
|
+
})
|
|
72
80
|
}, m("#modal").modal({ show: !0 });
|
|
73
81
|
}
|
|
74
82
|
},
|
|
@@ -97,8 +105,12 @@ const L = {
|
|
|
97
105
|
handler: () => {
|
|
98
106
|
this.modal = {
|
|
99
107
|
...this.modal,
|
|
100
|
-
message: this.$t(
|
|
101
|
-
|
|
108
|
+
message: this.$t(
|
|
109
|
+
"message.dataupload.menu.markAsDraft.message"
|
|
110
|
+
),
|
|
111
|
+
confirm: this.$t(
|
|
112
|
+
"message.dataupload.menu.markAsDraft.confirm"
|
|
113
|
+
),
|
|
102
114
|
confirmHandler: () => this.handleMarkAsDraft({
|
|
103
115
|
id: this.getID,
|
|
104
116
|
catalog: this.getCatalog.id,
|
|
@@ -115,9 +127,17 @@ const L = {
|
|
|
115
127
|
handler: () => {
|
|
116
128
|
this.modal = {
|
|
117
129
|
...this.modal,
|
|
118
|
-
message: this.$t(
|
|
119
|
-
|
|
120
|
-
|
|
130
|
+
message: this.$t(
|
|
131
|
+
"message.dataupload.menu.registerADoi.message"
|
|
132
|
+
),
|
|
133
|
+
confirm: this.$t(
|
|
134
|
+
"message.dataupload.menu.registerADoi.confirm"
|
|
135
|
+
),
|
|
136
|
+
confirmHandler: () => this.handleRegisterDoi({
|
|
137
|
+
id: this.getID,
|
|
138
|
+
catalog: this.getCatalog.id,
|
|
139
|
+
type: this.$env.content.dataProviderInterface.doiRegistrationService.persistentIdentifierType || "mock"
|
|
140
|
+
})
|
|
121
141
|
}, m("#modal").modal({ show: !0 });
|
|
122
142
|
}
|
|
123
143
|
}
|
|
@@ -142,7 +162,11 @@ const L = {
|
|
|
142
162
|
...this.modal,
|
|
143
163
|
message: "Are you sure you want to delete this catalogue? This can not be reverted!",
|
|
144
164
|
confirm: "Delete catlogue (irreversible)",
|
|
145
|
-
confirmHandler: () => this.handleDelete({
|
|
165
|
+
confirmHandler: () => this.handleDelete({
|
|
166
|
+
id: this.$route.params.ctlg_id,
|
|
167
|
+
property: "catalogues",
|
|
168
|
+
catalog: this.$route.params.ctlg_id
|
|
169
|
+
})
|
|
146
170
|
}, m("#modal").modal({ show: !0 });
|
|
147
171
|
}
|
|
148
172
|
},
|
|
@@ -168,76 +192,97 @@ const L = {
|
|
|
168
192
|
];
|
|
169
193
|
},
|
|
170
194
|
menuItems() {
|
|
171
|
-
|
|
195
|
+
let e = [
|
|
172
196
|
{
|
|
173
197
|
name: this.$t("message.dataupload.menu.draftDatasets"),
|
|
174
|
-
to: {
|
|
198
|
+
to: {
|
|
199
|
+
name: "DataProviderInterface-Draft",
|
|
200
|
+
query: { locale: this.$route.query.locale }
|
|
201
|
+
}
|
|
175
202
|
},
|
|
176
203
|
{
|
|
177
204
|
name: this.$t("message.dataupload.menu.myCatalogues"),
|
|
178
|
-
to: {
|
|
205
|
+
to: {
|
|
206
|
+
name: "DataProviderInterface-UserCatalogues",
|
|
207
|
+
query: { locale: this.$route.query.locale }
|
|
208
|
+
}
|
|
179
209
|
},
|
|
180
210
|
{
|
|
181
211
|
name: this.$t("message.dataupload.menu.userProfile"),
|
|
182
|
-
to: {
|
|
212
|
+
to: {
|
|
213
|
+
name: "DataProviderInterface-UserProfile",
|
|
214
|
+
query: { locale: this.$route.query.locale }
|
|
215
|
+
}
|
|
183
216
|
}
|
|
184
217
|
];
|
|
218
|
+
return this.showRatingService && this.isOperator && e.push({
|
|
219
|
+
name: "Comment Moderation",
|
|
220
|
+
to: {
|
|
221
|
+
name: "DataProviderInterface-CommentsModeration",
|
|
222
|
+
query: { locale: this.$route.query.locale }
|
|
223
|
+
}
|
|
224
|
+
}), e;
|
|
185
225
|
},
|
|
186
226
|
isLocatedOnAuthorizedDatasetPage() {
|
|
187
227
|
if (this.getLoading)
|
|
188
228
|
return !1;
|
|
189
|
-
const
|
|
190
|
-
if (!
|
|
229
|
+
const e = this.$route.name === "DatasetDetailsDataset";
|
|
230
|
+
if (!e)
|
|
191
231
|
return !1;
|
|
192
|
-
const
|
|
193
|
-
return
|
|
232
|
+
const t = e && this.$route.params.ds_id, r = this.getUserData && this.getUserData.permissions, s = this.getCatalog && this.getCatalog.id;
|
|
233
|
+
return r.find(
|
|
234
|
+
(o) => o.rsname === s
|
|
235
|
+
) && e && t === this.getID;
|
|
194
236
|
},
|
|
195
237
|
isLocatedOnAuthorizedCatalogPage() {
|
|
196
238
|
if (this.getLoading)
|
|
197
239
|
return !1;
|
|
198
|
-
const
|
|
199
|
-
return
|
|
240
|
+
const e = this.$route.name === "CatalogueDetails";
|
|
241
|
+
return e ? (e && this.$route.params.ctlg_id, e) : !1;
|
|
242
|
+
},
|
|
243
|
+
isOperator() {
|
|
244
|
+
return this.getUserData.roles.includes("operator");
|
|
200
245
|
}
|
|
201
246
|
},
|
|
202
247
|
methods: {
|
|
203
|
-
...k("auth", [
|
|
204
|
-
|
|
205
|
-
]),
|
|
206
|
-
...k("snackbar", [
|
|
207
|
-
"showSnackbar"
|
|
208
|
-
]),
|
|
248
|
+
...k("auth", ["updateUserData"]),
|
|
249
|
+
...k("snackbar", ["showSnackbar"]),
|
|
209
250
|
setupKeycloakWatcher() {
|
|
210
|
-
this.$keycloak && this.$keycloak.authenticated && (this.$watch(
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
251
|
+
this.$keycloak && this.$keycloak.authenticated && (this.$watch(
|
|
252
|
+
"$keycloak.token",
|
|
253
|
+
async (e) => {
|
|
254
|
+
if (!e)
|
|
255
|
+
return;
|
|
256
|
+
let t = this.$keycloak.rtpToken;
|
|
257
|
+
if (!t) {
|
|
258
|
+
const r = this.$keycloak.getRtpToken;
|
|
259
|
+
r && (t = await r({ autoRefresh: !0 }));
|
|
260
|
+
}
|
|
261
|
+
this.updateUserData({
|
|
262
|
+
authToken: e,
|
|
263
|
+
rtpToken: t,
|
|
264
|
+
hubUrl: this.$env.api.hubUrl
|
|
265
|
+
});
|
|
266
|
+
},
|
|
267
|
+
{ immediate: !0 }
|
|
268
|
+
), this.$watch("$keycloak.rtpToken", (e) => {
|
|
269
|
+
e && this.updateUserData({
|
|
225
270
|
authToken: this.$keycloak.token,
|
|
226
|
-
rtpToken:
|
|
271
|
+
rtpToken: e,
|
|
227
272
|
hubUrl: this.$env.api.hubUrl
|
|
228
273
|
});
|
|
229
274
|
}));
|
|
230
275
|
},
|
|
231
|
-
async handleConfirm(
|
|
276
|
+
async handleConfirm(e, t, { successMessage: r, errorMessage: s }) {
|
|
232
277
|
this.modal.loading = !0;
|
|
233
278
|
try {
|
|
234
|
-
this.$Progress.start(), await new Promise((a) => setTimeout(a, 250)), this.$Progress.set(25), await this.$store.dispatch(
|
|
235
|
-
message:
|
|
279
|
+
this.$Progress.start(), await new Promise((a) => setTimeout(a, 250)), this.$Progress.set(25), await this.$store.dispatch(e, t), this.showSnackbar({
|
|
280
|
+
message: r,
|
|
236
281
|
variant: "success"
|
|
237
282
|
}), await new Promise((a) => setTimeout(a, 250)), this.$Progress.finish();
|
|
238
283
|
} catch (a) {
|
|
239
284
|
this.$Progress.fail(), console.error(a);
|
|
240
|
-
const
|
|
285
|
+
const o = a.response && a.response.data && a.response.data.message;
|
|
241
286
|
this.modal = {
|
|
242
287
|
...this.modal,
|
|
243
288
|
// Need to translate this
|
|
@@ -247,64 +292,73 @@ const L = {
|
|
|
247
292
|
}, console.log(a.response.data);
|
|
248
293
|
let i = typeof s == "string" && s;
|
|
249
294
|
i = typeof s == "function" && s(a), i = typeof s == "object" && s.prefix + " - " + a.response.data, console.log(s);
|
|
250
|
-
const
|
|
295
|
+
const g = i || o || a.message || "An error occurred";
|
|
251
296
|
this.showSnackbar({
|
|
252
|
-
message:
|
|
297
|
+
message: g,
|
|
253
298
|
variant: "error"
|
|
254
299
|
});
|
|
255
300
|
} finally {
|
|
256
301
|
this.modal.loading = !1, m("#modal").modal("hide");
|
|
257
302
|
}
|
|
258
303
|
},
|
|
259
|
-
async handleRegisterDoi({ id:
|
|
304
|
+
async handleRegisterDoi({ id: e, catalog: t, type: r = "eu-ra-doi" }) {
|
|
260
305
|
await this.handleConfirm(
|
|
261
306
|
"auth/createPersistentIdentifier",
|
|
262
|
-
{ id:
|
|
307
|
+
{ id: e, catalog: t, type: r },
|
|
263
308
|
{
|
|
264
309
|
successMessage: this.$te("message.snackbar.doiRegistration.success") ? this.$t("message.snackbar.doiRegistration.success") : "Successfully registered DOI",
|
|
265
|
-
errorMessage: {
|
|
310
|
+
errorMessage: {
|
|
311
|
+
prefix: this.$te("message.snackbar.doiRegistration.error") ? this.$t("message.snackbar.doiRegistration.error") : "DOI registration failed"
|
|
312
|
+
}
|
|
266
313
|
}
|
|
267
314
|
);
|
|
268
315
|
},
|
|
269
|
-
async handleMarkAsDraft({
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
316
|
+
async handleMarkAsDraft({ id: e, catalog: t, title: r, description: s }) {
|
|
317
|
+
await this.handleConfirm(
|
|
318
|
+
"auth/putDatasetToDraft",
|
|
319
|
+
{
|
|
320
|
+
id: e,
|
|
321
|
+
catalog: t,
|
|
322
|
+
title: r,
|
|
323
|
+
description: s
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
successMessage: this.$te("message.snackbar.markAsDraft.success") ? this.$t("message.snackbar.markAsDraft.success") : "Dataset successfully marked as draft",
|
|
327
|
+
errorMessage: {
|
|
328
|
+
prefix: this.$te("message.snackbar.markAsDraft.error") ? this.$t("message.snackbar.markAsDraft.error") : "Failed to mark dataset as draft"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
), this.$router.push({
|
|
332
|
+
name: "DataProviderInterface-Draft",
|
|
333
|
+
query: { locale: this.$route.query.locale }
|
|
334
|
+
}).catch(() => {
|
|
284
335
|
});
|
|
285
336
|
},
|
|
286
|
-
async handleDelete({ id:
|
|
337
|
+
async handleDelete({ id: e, property: t, catalog: r }) {
|
|
287
338
|
var s, a;
|
|
288
339
|
this.modal.loading = !0, this.$Progress.start();
|
|
289
340
|
try {
|
|
290
|
-
let
|
|
291
|
-
|
|
341
|
+
let o;
|
|
342
|
+
t === "datasets" ? o = `${this.$env.api.hubUrl}datasets/${e}?useNormalizedId=true&catalogue=${r}` : t === "catalogues" && (o = `${this.$env.api.hubUrl}catalogues/${e}`), await A.delete(o, {
|
|
292
343
|
headers: {
|
|
293
344
|
"Content-Type": "text/turtle",
|
|
294
345
|
Authorization: `Bearer ${this.getUserData.rtpToken}`
|
|
295
346
|
}
|
|
296
347
|
});
|
|
297
348
|
let i;
|
|
298
|
-
|
|
349
|
+
t === "datasets" ? i = this.$te("message.snackbar.deleteDataset.success") ? this.$t("message.snackbar.deleteDataset.success") : "Dataset successfully deleted" : t === "catalogues" && (i = this.$te("message.snackbar.deleteCatalog.success") ? this.$t("message.snackbar.deleteCatalog.success") : "Catalog successfully deleted"), this.showSnackbar({
|
|
299
350
|
message: i,
|
|
300
351
|
variant: "success"
|
|
301
|
-
}), this.$Progress.finish(), this.$router.push({
|
|
352
|
+
}), this.$Progress.finish(), this.$router.push({
|
|
353
|
+
name: "Datasets",
|
|
354
|
+
query: { locale: this.$route.query.locale, refresh: !0 }
|
|
355
|
+
}).catch(() => {
|
|
302
356
|
});
|
|
303
|
-
} catch (
|
|
357
|
+
} catch (o) {
|
|
304
358
|
this.$Progress.fail();
|
|
305
359
|
let i;
|
|
306
|
-
|
|
307
|
-
message: `${i}${(s =
|
|
360
|
+
t === "datasets" ? i = this.$te("message.snackbar.deleteDataset.error") ? this.$t("message.snackbar.deleteDataset.error") : "Failed to delete dataset" : t === "catalogues" && (i = this.$te("message.snackbar.deleteCatalog.error") ? this.$t("message.snackbar.deleteCatalog.error") : "Failed to delete catalog"), this.showSnackbar({
|
|
361
|
+
message: `${i}${(s = o.response) != null && s.data ? ` — ${(a = o.response) == null ? void 0 : a.data}` : o.message}`,
|
|
308
362
|
variant: "error"
|
|
309
363
|
});
|
|
310
364
|
} finally {
|
|
@@ -315,51 +369,51 @@ const L = {
|
|
|
315
369
|
created() {
|
|
316
370
|
this.setupKeycloakWatcher();
|
|
317
371
|
}
|
|
318
|
-
},
|
|
372
|
+
}, L = {
|
|
319
373
|
id: "wrapper",
|
|
320
374
|
"data-cy": "dpi-menu"
|
|
321
|
-
}, M = { key: 0 },
|
|
375
|
+
}, M = { key: 0 }, R = { class: "text-white" }, N = { style: { "margin-top": "1%" } }, E = { class: "btn-group dropup" }, H = {
|
|
322
376
|
key: 0,
|
|
323
377
|
class: "logoutWrap"
|
|
324
378
|
}, x = { class: "text-white" }, F = {
|
|
325
379
|
type: "button",
|
|
326
380
|
class: "btn btn-default logout"
|
|
327
381
|
};
|
|
328
|
-
function B(
|
|
329
|
-
const i = f("dropup"),
|
|
330
|
-
return u(),
|
|
331
|
-
a.visible ? (u(),
|
|
332
|
-
|
|
333
|
-
|
|
382
|
+
function B(e, t, r, s, a, o) {
|
|
383
|
+
const i = f("dropup"), g = f("router-link"), w = f("app-confirmation-dialog");
|
|
384
|
+
return u(), h("div", L, [
|
|
385
|
+
a.visible ? (u(), h("nav", M, [
|
|
386
|
+
l("div", null, [
|
|
387
|
+
l("h4", R, c(e.$t("message.dataupload.menu.dpi")), 1)
|
|
334
388
|
]),
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
(u(!0),
|
|
389
|
+
t[5] || (t[5] = d()),
|
|
390
|
+
l("div", N, [
|
|
391
|
+
(u(!0), h(y, null, b(o.menuGroups, (n, p) => (u(), v(i, {
|
|
338
392
|
key: `Group${p}`,
|
|
339
|
-
groupName:
|
|
340
|
-
groupItems:
|
|
341
|
-
show:
|
|
342
|
-
isOperator:
|
|
343
|
-
isCatalog:
|
|
393
|
+
groupName: n.group,
|
|
394
|
+
groupItems: n.items,
|
|
395
|
+
show: e.$env.content.dataProviderInterface.buttons[n.group],
|
|
396
|
+
isOperator: e.getUserData.roles.includes("operator"),
|
|
397
|
+
isCatalog: n.group === "Catalogue"
|
|
344
398
|
}, null, 8, ["groupName", "groupItems", "show", "isOperator", "isCatalog"]))), 128)),
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
(u(!0),
|
|
399
|
+
t[1] || (t[1] = d()),
|
|
400
|
+
l("ul", null, [
|
|
401
|
+
l("div", E, [
|
|
402
|
+
(u(!0), h(y, null, b(o.menuItems, (n, p) => (u(), h("li", {
|
|
349
403
|
key: `Menu${p}`
|
|
350
404
|
}, [
|
|
351
|
-
|
|
405
|
+
l("button", {
|
|
352
406
|
type: "button",
|
|
353
407
|
class: "btn btn-default",
|
|
354
|
-
onClick:
|
|
408
|
+
onClick: t[0] || (t[0] = (I) => s.scrollToTop())
|
|
355
409
|
}, [
|
|
356
|
-
(u(),
|
|
357
|
-
class:
|
|
358
|
-
to:
|
|
359
|
-
onClick: (
|
|
410
|
+
(u(), v(q(n.handler ? "button" : "router-link"), {
|
|
411
|
+
class: _({ disabled: n.disabled }),
|
|
412
|
+
to: n.to,
|
|
413
|
+
onClick: (I) => n.handler ? n.handler() : null
|
|
360
414
|
}, {
|
|
361
415
|
default: D(() => [
|
|
362
|
-
d(c(
|
|
416
|
+
d(c(n.handler) + " " + c(n.name), 1)
|
|
363
417
|
]),
|
|
364
418
|
_: 2
|
|
365
419
|
}, 1032, ["class", "to", "onClick"]))
|
|
@@ -368,17 +422,17 @@ function B(t, e, o, s, a, r) {
|
|
|
368
422
|
])
|
|
369
423
|
])
|
|
370
424
|
]),
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
O(
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
425
|
+
t[6] || (t[6] = d()),
|
|
426
|
+
e.getUserData.userName ? (u(), h("div", H, [
|
|
427
|
+
O(e.$slots, "right", { getUserData: e.getUserData }, () => [
|
|
428
|
+
l("small", x, c(e.$t("message.dataupload.menu.loggedInAs")) + " " + c(e.getUserData.userName), 1),
|
|
429
|
+
t[2] || (t[2] = d()),
|
|
430
|
+
t[3] || (t[3] = l("br", null, null, -1)),
|
|
431
|
+
t[4] || (t[4] = d()),
|
|
432
|
+
l("button", F, [
|
|
433
|
+
C(g, { to: { name: "Logout" } }, {
|
|
380
434
|
default: D(() => [
|
|
381
|
-
d(c(
|
|
435
|
+
d(c(e.$t("message.dataupload.menu.logout")), 1)
|
|
382
436
|
]),
|
|
383
437
|
_: 1
|
|
384
438
|
})
|
|
@@ -386,8 +440,8 @@ function B(t, e, o, s, a, r) {
|
|
|
386
440
|
], !0)
|
|
387
441
|
])) : P("", !0)
|
|
388
442
|
])) : P("", !0),
|
|
389
|
-
|
|
390
|
-
|
|
443
|
+
t[7] || (t[7] = d()),
|
|
444
|
+
C(w, {
|
|
391
445
|
id: "DPIMenuModal",
|
|
392
446
|
loading: a.modal.loading,
|
|
393
447
|
confirm: a.modal.confirm,
|
|
@@ -400,7 +454,7 @@ function B(t, e, o, s, a, r) {
|
|
|
400
454
|
}, 8, ["loading", "confirm", "onConfirm"])
|
|
401
455
|
]);
|
|
402
456
|
}
|
|
403
|
-
const Z = /* @__PURE__ */ z
|
|
457
|
+
const Z = /* @__PURE__ */ S(z, [["render", B], ["__scopeId", "data-v-e044a30d"]]);
|
|
404
458
|
export {
|
|
405
459
|
Z as default
|
|
406
460
|
};
|