mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 20:19:13 +00:00
Permalinks for seed colors
This commit is contained in:
@@ -118,6 +118,10 @@ let paletteAppSpec = {
|
||||
}
|
||||
}
|
||||
|
||||
if (this.permalink.has('color')) {
|
||||
this.seedColors = this.permalink.getAll('color');
|
||||
}
|
||||
|
||||
if (this.permalink.has('uid')) {
|
||||
this.uid = Number(this.permalink.get('uid'));
|
||||
}
|
||||
@@ -492,6 +496,14 @@ let paletteAppSpec = {
|
||||
this.permalink.set('gray-chroma', this.grayChroma, this.originalGrayChroma);
|
||||
},
|
||||
|
||||
seedColors: {
|
||||
deep: true,
|
||||
handler() {
|
||||
this.permalink.set('color', this.seedColors);
|
||||
this.permalink.updateLocation();
|
||||
},
|
||||
},
|
||||
|
||||
tweaks: {
|
||||
deep: true,
|
||||
async handler(value, oldValue) {
|
||||
|
||||
Reference in New Issue
Block a user