forked from rancher/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: app-bar init implementation * fix: users e2e test * chore: removes extra code * fix: adds the correct width for the app-bar * fix: addressing feedback * fix: cleans up max-items preference, layout improvements * chore: removes extra file * feedback * fixes issue with extra padding in standalone * fix: loading overlay * fix: spaces * fix: missing content * Added pin clusetr list * Removed commented code * Fixed sorted list order * fix: fedback * removes the 2px top * fix: brings back the local cluster icon * fix: adds cluster filter badge & cluster count * Fix pin cluster test * Rename pinned-clusters in pref * Added pin methoded in cluster model * Added test for unpinning cluster * Fixed test * Fixed lint * Clean up css * Resolved feedback * Fixed lint * Removed local cluster badge test * Removed model --------- Co-authored-by: scures <[email protected]>
- Loading branch information
1 parent
9b1c610
commit 2ffe8d3
Showing
9 changed files
with
324 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -427,5 +427,4 @@ export default { | |
} | ||
} | ||
} | ||
</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,47 @@ | ||
<script> | ||
// Allow the user to pin a cluster by clicking it. | ||
export default { | ||
props: { | ||
cluster: { | ||
type: Object, | ||
required: true, | ||
} | ||
}, | ||
computed: { | ||
pinned() { | ||
return this.cluster.pinned; | ||
} | ||
}, | ||
methods: { | ||
toggle() { | ||
if ( this.pinned ) { | ||
this.cluster.unpin(); | ||
} else { | ||
this.cluster.pin(); | ||
} | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<template> | ||
<i | ||
:tabindex="0" | ||
:aria-checked="!!pinned" | ||
class="pin icon" | ||
:class="{'icon-pin-outlined': !pinned, 'icon-pin': pinned}" | ||
aria-role="button" | ||
@click.stop.prevent="toggle" | ||
@keydown.enter.prevent="toggle" | ||
@keydown.space.prevent="toggle" | ||
/> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
.icon { | ||
font-size: 14px; | ||
transform: scaleX(-1); | ||
} | ||
</style> |
Oops, something went wrong.