Browse Source

add title on links

pull/32/head
Simon Vieille 6 months ago
parent
commit
321e5b1178
Signed by: deblan GPG Key ID: 03383D15A1D31745
2 changed files with 5 additions and 2 deletions
  1. +1
    -0
      package.json
  2. +4
    -2
      src/SideMenu.vue

+ 1
- 0
package.json View File

@ -13,6 +13,7 @@
"dependencies": {
"@nextcloud/axios": "^1.3.2",
"@nextcloud/vue": "^1.4.0",
"trim": "0.0.1",
"vue": "^2.6.11"
},
"browserslist": [

+ 4
- 2
src/SideMenu.vue View File

@ -26,7 +26,7 @@ along with this program. If not, see .
<ul class="side-menu-apps-list">
<li v-for="app in apps" v-bind:class="{'side-menu-app': true, 'active': app.active}">
<a v-bind:href="app.href">
<a v-bind:href="app.href" v-bind:title="app.name">
<span class="side-menu-app-icon" v-html="app.icon"></span>
<span class="side-menu-app-text" v-html="app.name"></span>
</a>
@ -36,6 +36,8 @@ along with this program. If not, see .
</template>
<script>
import trim from 'trim'
export default {
name: 'SideMenu',
data() {
@ -71,7 +73,7 @@ export default {
this.apps.push({
href: href,
name: element.querySelector('span').innerHTML,
name: trim(element.querySelector('span').innerHTML),
icon: svg,
active: element.classList.contains('active')
});

Loading…
Cancel
Save