mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Conflict filter checkbox state is now recorded.
For list filtering and scrolling. Also added an import for the checkbox, it missing wasn't causing problems, but it should still be there.
This commit is contained in:
@@ -19,6 +19,7 @@ loot-clear-metadata
|
||||
<link rel="import" href="../bower_components/paper-menu-button/paper-menu-button.html">
|
||||
<link rel="import" href="../bower_components/paper-item/paper-item.html">
|
||||
<link rel="import" href="../bower_components/paper-dropdown/paper-dropdown.html">
|
||||
<link rel="import" href="../bower_components/paper-checkbox/paper-checkbox.html">
|
||||
<link rel="import" href="../bower_components/paper-icon-button/paper-icon-button.html">
|
||||
|
||||
<link rel="import" href="loot-plugin-editor.html">
|
||||
@@ -143,7 +144,7 @@ loot-clear-metadata
|
||||
<paper-dropdown class="dropdown" halign="right" opened="{{data.isMenuOpen}}">
|
||||
<div>
|
||||
<paper-item>
|
||||
<paper-checkbox id="showOnlyConflicts" label="Show Only Conflicts" flex></paper-checkbox>
|
||||
<paper-checkbox id="showOnlyConflicts" label="Show Only Conflicts" checked="{{data.isConflictFilterChecked}}" flex></paper-checkbox>
|
||||
</paper-item>
|
||||
<paper-item id="editMetadata">
|
||||
<core-icon icon="create"></core-icon>
|
||||
@@ -223,6 +224,9 @@ loot-clear-metadata
|
||||
this.onCrcChange();
|
||||
this.onTagsChange();
|
||||
this.onMessagesChange();
|
||||
|
||||
/* Also set highlight if the conflict filter is active. */
|
||||
this.classList.toggle('highlight', this.data.isConflictFilterChecked);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ function Plugin(obj) {
|
||||
this.id = this.name.replace(/\s+/g, '');
|
||||
this.isMenuOpen = false;
|
||||
this.isEditorOpen = false;
|
||||
this.isConflictFilterChecked = false;
|
||||
|
||||
/* Converts between the LOOT metadata object for tags, and their
|
||||
editor row representation. */
|
||||
|
||||
Reference in New Issue
Block a user