@asd20/ui 3.2.537 → 3.2.539
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
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
:aria-label="hideLabel ? label : undefined"
|
|
7
7
|
:title="hideLabel ? label : undefined"
|
|
8
8
|
:target="
|
|
9
|
-
!link ||
|
|
10
|
-
link.startsWith('/') ||
|
|
11
|
-
link.startsWith('https://directory') ||
|
|
12
|
-
link.startsWith('https://calendar') ||
|
|
13
|
-
link.startsWith('https://school')
|
|
9
|
+
!link || link.startsWith('/') || link.includes('asd20.org')
|
|
14
10
|
? undefined
|
|
15
11
|
: '_blank'
|
|
16
12
|
"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<asd20-button
|
|
25
25
|
class="back"
|
|
26
26
|
v-if="!breadcrumbLinks.length"
|
|
27
|
-
:link="
|
|
27
|
+
:link="returnURL"
|
|
28
28
|
label="Back"
|
|
29
29
|
icon="chevron"
|
|
30
30
|
:iconAngle="-90"
|
|
@@ -175,6 +175,9 @@ export default {
|
|
|
175
175
|
categories: { type: Array, default: () => [] },
|
|
176
176
|
languageCode: { type: String, default: '' },
|
|
177
177
|
},
|
|
178
|
+
data: () => ({
|
|
179
|
+
returnURL: '',
|
|
180
|
+
}),
|
|
178
181
|
computed: {
|
|
179
182
|
mq() {
|
|
180
183
|
return this.$mq || 'sm'
|
|
@@ -210,10 +213,13 @@ export default {
|
|
|
210
213
|
return modifiedDateTimeString > publishDateTimePlusOne ? true : false
|
|
211
214
|
},
|
|
212
215
|
},
|
|
216
|
+
mounted() {
|
|
217
|
+
this.goBack()
|
|
218
|
+
},
|
|
213
219
|
methods: {
|
|
214
220
|
goBack() {
|
|
215
221
|
if (typeof window === 'undefined') return
|
|
216
|
-
|
|
222
|
+
this.returnURL = document.referrer
|
|
217
223
|
// window.history.back()
|
|
218
224
|
// const url = window.location.href
|
|
219
225
|
// return url.slice(0, url.lastIndexOf('/'))
|
|
@@ -234,11 +240,15 @@ export default {
|
|
|
234
240
|
box-sizing: border-box;
|
|
235
241
|
margin-bottom: space(1.5);
|
|
236
242
|
.back {
|
|
237
|
-
padding:
|
|
243
|
+
padding: 0;
|
|
244
|
+
margin-top: space(1);
|
|
238
245
|
font-family: var(--website-typography__font-family-body);
|
|
239
246
|
line-height: 1.2;
|
|
240
247
|
font-size: 14px !important;
|
|
241
248
|
font-weight: normal;
|
|
249
|
+
&::v-deep span {
|
|
250
|
+
padding-right: space(0.5);
|
|
251
|
+
}
|
|
242
252
|
}
|
|
243
253
|
|
|
244
254
|
&::after {
|
|
@@ -460,6 +470,7 @@ export default {
|
|
|
460
470
|
.asd20-page-header {
|
|
461
471
|
.back {
|
|
462
472
|
padding: 0;
|
|
473
|
+
margin: 0;
|
|
463
474
|
}
|
|
464
475
|
&::after {
|
|
465
476
|
top: space(6);
|