-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/can-delete-edit-per-line
- Loading branch information
Showing
6 changed files
with
107 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
<template> | ||
<div class="column type-text"> | ||
{{ content }} | ||
<v-tooltip right v-if="typeof tableColumn.tooltip !== 'undefined'"> | ||
<template v-slot:activator="{ on }"> | ||
<span v-on="on">{{ content }}</span> | ||
</template> | ||
<span>{{item[tableColumn.tooltip]}}</span> | ||
</v-tooltip> | ||
|
||
<span v-else>{{ content }}</span> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'TextType', | ||
props: ['content'], | ||
data () { | ||
return { | ||
props: ['content', 'item', 'tableColumn'], | ||
} | ||
} | ||
} | ||
data() { | ||
return {}; | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<template> | ||
<v-dialog v-model="dialog" persistent max-width="290"> | ||
<v-card> | ||
<v-card-title class="headline">{{lang('delete-confirmation-title')}}</v-card-title> | ||
<v-card-text>{{lang('delete-confirmation-content')}}</v-card-text> | ||
<v-card-actions> | ||
<v-spacer></v-spacer> | ||
<v-btn color="grey" flat @click="dialog = false">{{lang('cancel')}}</v-btn> | ||
<v-btn color="priamry darken-1" flat @click="handleDelete">{{lang('delete')}}</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
|
||
<script> | ||
import Language from './../mixins/Language.js'; | ||
export default { | ||
props: ['callback', 'texts'], | ||
name: 'delete-confirmation', | ||
mixins: [Language], | ||
data() { | ||
return { | ||
ids: [], | ||
dialog: false, | ||
} | ||
}, | ||
methods: { | ||
handleDelete() { | ||
this.callback(this.ids); | ||
this.dialog=false; | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
import texts from './../texts.js'; | ||
export default { | ||
|
||
methods: { | ||
lang(t) { | ||
if (typeof this.texts === 'undefined' || typeof this.texts[t] === 'undefined') { | ||
return texts[t]; | ||
} else { | ||
return this.texts[t]; | ||
} | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters