-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixing eslint (#175) * Feature/global component changes (#176) * component changes for event history highlight * adding reference to where highlight is used in the code * changes to move settings-modal into a folder. breaking into smaller reusable components. (#177) * Adding workflow event type to helpers and add constant type. (#178) * New helpers which manage workflowHistoryEventHighlightList. (#179) * Helper changes for highlight toggle (#180) * Feature/workflow history highlight toggle (#182) * New helpers which manage workflowHistoryEventHighlightList. * Helper changes for highlight toggle * adding highlight-toggle to workflow history * Feature/workflow history settings modal (#183) * New helpers which manage workflowHistoryEventHighlightList. * Helper changes for highlight toggle * adding highlight-toggle to workflow history * Add workflow history screen to settings modal * 3.19.0-beta.0 * fix/spec eslint fixes (#185) * New helpers which manage workflowHistoryEventHighlightList. * Helper changes for highlight toggle * adding highlight-toggle to workflow history * Add workflow history screen to settings modal * 3.19.0-beta.0 * fixing eslint on spec files. * fixing previous dates and adding 3.19.0 release notes (#184) * 3.19.0-beta.1 * 3.19.0
- Loading branch information
1 parent
25e8055
commit 02cb9ff
Showing
55 changed files
with
1,815 additions
and
375 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
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
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,80 @@ | ||
<template> | ||
<component class="highlight-toggle" :is="tag"> | ||
<span class="label" :class="{ highlight: isHighlighted }"> | ||
{{ label }} | ||
</span> | ||
<button-icon | ||
:class="{ | ||
active: isHighlighted, | ||
disabled: !isEnabled, | ||
}" | ||
icon="icon_search" | ||
@click="onClick" | ||
/> | ||
</component> | ||
</template> | ||
|
||
<script> | ||
import ButtonIcon from './button-icon'; | ||
export default { | ||
name: 'highlight-toggle', | ||
props: { | ||
isHighlighted: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
isEnabled: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
label: { | ||
type: String, | ||
}, | ||
tag: { | ||
type: String, | ||
default: 'div', | ||
}, | ||
}, | ||
components: { | ||
'button-icon': ButtonIcon, | ||
}, | ||
methods: { | ||
onClick(...args) { | ||
if (this.isEnabled) { | ||
this.$emit('click', ...args); | ||
} | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="stylus"> | ||
.highlight-toggle { | ||
line-height: 18px; | ||
&:hover { | ||
.button-icon { | ||
display: inline-block; | ||
} | ||
} | ||
.button-icon { | ||
display: none; | ||
min-width: 24px; | ||
padding: 0; | ||
&.active { | ||
display: inline-block; | ||
} | ||
&.disabled { | ||
display: none !important; | ||
} | ||
} | ||
.label.highlight { | ||
font-weight: bold; | ||
} | ||
} | ||
</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
Oops, something went wrong.