File tree 2 files changed +21
-11
lines changed
2 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 10
10
<!-- slot to inject components at the beginning (before title) -->
11
11
<slot name =" wgu-tb-start" ></slot >
12
12
13
- <v-toolbar-title >{{ title}} </v-toolbar-title >
13
+ <v-toolbar-title >< span v-html = " title" /> </v-toolbar-title >
14
14
15
15
<!-- slot to inject components after the title text -->
16
16
<slot name =" wgu-tb-after-title" ></slot >
Original file line number Diff line number Diff line change 1
1
<template >
2
+ <div >
3
+ <!-- Logo content maybe either avatar and/or text -->
4
+ <v-avatar
5
+ v-if =" logoSrc"
6
+ :size =" logoSize"
7
+ :tile =" true"
8
+ class =" wgu-app-logo"
9
+ >
10
+ <img :src =" logoSrc" alt =" App Logo" >
11
+ </v-avatar >
2
12
3
- <v-avatar
4
- v-if =" !!logoSrc"
5
- :size =" logoSize"
6
- :tile =" true"
7
- class =" wgu-app-logo"
8
- >
9
- <img :src =" logoSrc" alt =" App Logo" >
10
- </v-avatar >
13
+ <div
14
+ v-if =" logoText"
15
+ class =" wgu-app-logo"
16
+ >
17
+ <span v-html =" logoText" />
18
+ </div >
19
+ </div >
11
20
12
21
</template >
13
22
@@ -18,7 +27,8 @@ export default {
18
27
data () {
19
28
return {
20
29
logoSrc: this .$appConfig .logo ,
21
- logoSize: this .$appConfig .logoSize
30
+ logoSize: this .$appConfig .logoSize ,
31
+ logoText: this .$appConfig .logoText
22
32
}
23
33
}
24
34
}
@@ -27,7 +37,7 @@ export default {
27
37
<!-- Add "scoped" attribute to limit CSS to this component only -->
28
38
<style>
29
39
30
- .v-avatar.v-avatar--tile.wgu-app-logo {
40
+ .v-avatar.v-avatar--tile.wgu-app-logo, div.wgu-app-logo {
31
41
position: absolute;
32
42
z-index: 2;
33
43
}
You can’t perform that action at this time.
0 commit comments