From 48216e16537d50a27579c545c93624c0302a5a78 Mon Sep 17 00:00:00 2001 From: Angelo Gallarello Date: Fri, 5 Apr 2019 10:38:39 +0200 Subject: Minor fixes --- client/components/boards/boardsList.jade | 4 +--- client/components/boards/boardsList.styl | 13 +++++++++++++ i18n/en.i18n.json | 3 ++- models/export.js | 1 - models/import.js | 1 + 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/client/components/boards/boardsList.jade b/client/components/boards/boardsList.jade index 109c25ed..753724fc 100644 --- a/client/components/boards/boardsList.jade +++ b/client/components/boards/boardsList.jade @@ -22,9 +22,7 @@ template(name="boardList") i.fa.js-star-board( class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}" title="{{_ 'star-board-title'}}") - i.fa.js-clone-board( - class="fa-clone") - + i.fa.js-clone-board(class="fa-clone") if hasSpentTimeCards i.fa.js-has-spenttime-cards( class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}" diff --git a/client/components/boards/boardsList.styl b/client/components/boards/boardsList.styl index 80e47685..9f0b204e 100644 --- a/client/components/boards/boardsList.styl +++ b/client/components/boards/boardsList.styl @@ -93,14 +93,27 @@ $spaceBetweenTiles = 16px .is-star-active color: white + .fa-clone + position: absolute; + bottom: 0 + font-size: 14px + height: 18px + line-height: 18px + opacity: 0 + right: 0 + padding: 9px 9px + transition-duration: .15s + transition-property: color, font-size, background li:hover a &:hover .fa-star, + .fa-clone, .fa-star-o color: white .fa-star, + .fa-clone, .fa-star-o color: white opacity: .75 diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json index d4e817ea..84975fde 100644 --- a/i18n/en.i18n.json +++ b/i18n/en.i18n.json @@ -664,5 +664,6 @@ "error-undefined": "Something went wrong", "error-ldap-login": "An error occurred while trying to login", "display-authentication-method": "Display Authentication Method", - "default-authentication-method": "Default Authentication Method" + "default-authentication-method": "Default Authentication Method", + "copy-tag": "Copy" } diff --git a/models/export.js b/models/export.js index 21710067..f7f2b713 100644 --- a/models/export.js +++ b/models/export.js @@ -17,7 +17,6 @@ if (Meteor.isServer) { JsonRoutes.add('get', '/api/boards/:boardId/export', function(req, res) { - console.error("LOGG API"); const boardId = req.params.boardId; let user = null; // todo XXX for real API, first look for token in Authentication: header diff --git a/models/import.js b/models/import.js index c73959b7..bf3a863e 100644 --- a/models/import.js +++ b/models/import.js @@ -39,6 +39,7 @@ Meteor.methods({ let addData = {}; addData.membersMapping = wekanMembersMapper.getMembersToMap(data); const creator = new WekanCreator(addData); + data.title = data.title + " - " + TAPi18n.__('copy-tag'); return creator.create(data, currentBoardId); }, }); -- cgit v1.2.3-1-g7c22