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:
Oliver Hamlet
2015-01-09 15:25:20 +00:00
parent 6270cda4ae
commit d0dce4100d
3 changed files with 2 additions and 7 deletions
+1 -5
View File
@@ -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>
-1
View File
@@ -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 */
+1 -1
View File
@@ -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>