mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-31 22:43:11 +02:00
Theme system refactor (#31)
This commit is contained in:
@@ -11,8 +11,10 @@ class PlaceholderWidget extends WidgetType {
|
||||
}
|
||||
toDOM() {
|
||||
const elt = document.createElement('span');
|
||||
elt.className = `placeholder-widget ${
|
||||
!this.isExistingVariable ? 'placeholder-widget-error' : ''
|
||||
elt.className = `x-theme-placeholder-widget placeholder-widget ${
|
||||
this.isExistingVariable
|
||||
? 'x-theme-placeholder-widget--primary'
|
||||
: 'x-theme-placeholder-widget--danger'
|
||||
}`;
|
||||
elt.title = !this.isExistingVariable ? 'Variable not found in active environment' : '';
|
||||
elt.textContent = this.name;
|
||||
|
||||
Reference in New Issue
Block a user