Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NXP-30351: add icon locally [master] #63

Merged
merged 1 commit into from May 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions nuxeo-coldstorage-web/elements/icons/coldstorage-icons.js
@@ -0,0 +1,31 @@
/* eslint-disable max-len */
/**
(C) Copyright 2019 Nuxeo SA (http://nuxeo.com/).
This is unpublished proprietary source code of Nuxeo SA. All rights reserved.
Notice of copyright on this source code does not indicate publication.
*/

/**
* `nuxeo-coldstorage`
* @group Nuxeo UI
*/

import '@polymer/iron-iconset-svg/iron-iconset-svg.js';
import { html } from '@polymer/polymer/lib/utils/html-tag.js';

const template = html`
<iron-iconset-svg size="24" name="coldstorage">
<svg>
<defs>
<g id="default">
<path
d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.24 3.24 1.41 1.42L9 13h2v2l-4.66 4.66 1.42 1.41L11 17.83V22h2v-4.17l3.24 3.24 1.42-1.41L13 15v-2h2l4.66 4.66 1.41-1.42L17.83 13H22 Z"
id="default"
></path>
</g>
</defs>
</svg>
</iron-iconset-svg>
`;

document.head.appendChild(template.content);
Expand Up @@ -46,7 +46,7 @@ class MoveToColdStorage extends mixinBehaviors([FiltersBehavior, FormatBehavior]
<dom-if if="[[_isAvailable(document, currentUser)]]">
<template>
<div class="action" on-click="_toggleDialog">
<paper-icon-button icon="nuxeo:coldstorage" noink></paper-icon-button>
<paper-icon-button icon="coldstorage:default" noink></paper-icon-button>
<span class="label">[[i18n('documentContentView.moveToColdStorage.label')]]</span>
<nuxeo-tooltip>[[i18n('documentContentView.moveToColdStorage.tooltip')]]</nuxeo-tooltip>
</div>
Expand Down
Expand Up @@ -46,7 +46,7 @@ class BulkMoveToColdStorage extends mixinBehaviors([FiltersBehavior, FormatBehav
<dom-if if="[[_isAvailable(documents, currentUser)]]">
<template>
<div class="action" on-click="_toggleDialog">
<paper-icon-button icon="nuxeo:coldstorage" noink></paper-icon-button>
<paper-icon-button icon="coldstorage:default" noink></paper-icon-button>
<nuxeo-tooltip>[[i18n('moveDocumentsContentsToColdStorage.tooltip')]]</nuxeo-tooltip>
</div>
</template>
Expand Down
Expand Up @@ -47,7 +47,7 @@ class RetrieveFromColdStorage extends mixinBehaviors([FiltersBehavior, FormatBeh
<dom-if if="[[_isAvailable(document, currentUser)]]">
<template>
<div class="action" on-click="_toggleDialog">
<paper-icon-button icon="nuxeo:coldstorage" noink></paper-icon-button>
<paper-icon-button icon="coldstorage:default" noink></paper-icon-button>
<span class="label">[[i18n('documentContentView.retrieveFromColdStorage.label')]]</span>
<nuxeo-tooltip>[[i18n('documentContentView.retrieveFromColdStorage.tooltip')]]</nuxeo-tooltip>
</div>
Expand Down
1 change: 1 addition & 0 deletions nuxeo-coldstorage-web/index.js
Expand Up @@ -17,5 +17,6 @@ limitations under the License.
import './elements/nuxeo-move-content-to-coldstorage-button.js';
import './elements/nuxeo-move-contents-to-coldstorage-button.js';
import './elements/nuxeo-retrieve-content-from-coldstorage-button.js';
import './elements/icons/coldstorage-icons.js';

import './nuxeo-coldstorage.html';
3 changes: 2 additions & 1 deletion nuxeo-coldstorage-web/package.json
Expand Up @@ -35,7 +35,8 @@
"@polymer/iron-icons": "^3.0.1",
"@polymer/paper-button": "^3.0.0",
"@polymer/paper-icon-button": "^3.0.0",
"@polymer/polymer": "3.3.1"
"@polymer/polymer": "3.3.1",
"@polymer/iron-iconset-svg": "^3.0.1"
},
"husky": {
"hooks": {
Expand Down