mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove BSA icon from sidebar items.
It was a bit of a arbitrary decision to have that icon and not dummy/master/empty icons. The metadata icon is important though, so just displaying it does give it that emphasis.
This commit is contained in:
@@ -7,11 +7,10 @@
|
||||
<polymer-element name="loot-plugin-item" attributes="priorityText data">
|
||||
<template>
|
||||
<style>
|
||||
:host(:not([data-bsa])) #loadsBSA,
|
||||
:host(:not([data-edits])) #hasUserEdits {
|
||||
display: none;
|
||||
}
|
||||
#loadsBSA > core-icon, #hasUserEdits > core-icon {
|
||||
#hasUserEdits > core-icon {
|
||||
display: block;
|
||||
margin-right: 0;
|
||||
}
|
||||
@@ -97,9 +96,6 @@
|
||||
<div id="priority"></div>
|
||||
</div>
|
||||
</div>
|
||||
<core-tooltip id="loadsBSA" label="Loads BSA" noarrow position="left">
|
||||
<core-icon icon="attachment"></core-icon>
|
||||
</core-tooltip>
|
||||
<core-tooltip id="hasUserEdits" label="Has User Metadata" noarrow position="left">
|
||||
<core-icon icon="account-circle"></core-icon>
|
||||
</core-tooltip>
|
||||
|
||||
@@ -136,7 +136,6 @@
|
||||
pluginItem = document.querySelector('polymer-element[name="loot-plugin-item"]').querySelector('template').content;
|
||||
}
|
||||
pluginItem.querySelector('#secondary core-tooltip').setAttribute('label', l10n.translate("Global Priority").fetch());
|
||||
pluginItem.getElementById('loadsBSA').setAttribute('label', l10n.translate("Loads BSA").fetch());
|
||||
pluginItem.getElementById('hasUserEdits').setAttribute('label', l10n.translate("Has User Metadata").fetch());
|
||||
|
||||
/* File row template */
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<core-animated-pages selected="cardsNav" valueattr="id" transitions="" flex>
|
||||
<core-list id="cardsNav" class="tab-content" flex>
|
||||
<template>
|
||||
<loot-plugin-item data-id="{{model.id}}" data-bsa?="{{model.loadsBSA}}" data="{{model}}" data-index="{{index}}">
|
||||
<loot-plugin-item data-id="{{model.id}}" data="{{model}}" data-index="{{index}}">
|
||||
{{model.name}}
|
||||
</loot-plugin-item>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user