Skip to content

Commit

Permalink
Add modal clear view timeout and modal title
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Feb 26, 2019
1 parent de16d5e commit 95a28f3
Show file tree
Hide file tree
Showing 6 changed files with 240 additions and 62 deletions.
1 change: 1 addition & 0 deletions src/assets/iconfont/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/iconfont/more.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/iconfont/pause.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/iconfont/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 4 additions & 9 deletions src/components/Action/Action.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
v-on="isSingleAction && firstAction.action ? { click: firstAction.action } : {}">
<!-- If more than one action, create a popovermenu -->
<template v-if="!isSingleAction">
<div v-click-outside="closeMenu" tabindex="0" class="action-item__menutoggle"
:class="moreIconClass"
<div v-click-outside="closeMenu" tabindex="0" class="icon action-item__menutoggle"
@click.prevent="toggleMenu" />
<div :class="{ 'open': opened }" class="action-item__menu popovermenu">
<popover-menu :menu="actions" />
Expand Down Expand Up @@ -70,10 +69,6 @@ export default {
}
]
}
},
forceWhite: {
type: Boolean,
default: false
}
},
data() {
Expand All @@ -87,9 +82,6 @@ export default {
},
firstAction() {
return this.actions[0]
},
moreIconClass() {
return `icon-more${this.forceWhite ? '-white' : ''}`
}
},
mounted() {
Expand All @@ -113,6 +105,8 @@ export default {
</script>

<style lang="scss" scoped>
@import '~Fonts/scss/iconfont-vue';

.action-item {
display: inline-block;

Expand All @@ -128,6 +122,7 @@ export default {
// icon-more
&__menutoggle {
display: inline-block;
@include iconfont('more');
}
// properly position the menu
&--multiple {
Expand Down
Loading

0 comments on commit 95a28f3

Please sign in to comment.