Commit c844388d252337069b35c057e81e2a4f96fbde34

Authored by Renato De Donato
1 parent 7e982fab

paper-card ln, but animated-card fix

controllets/animated-button-container-controllet/animated-button-container-controllet.html
@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
42 width: 484px; 42 width: 484px;
43 display: none; 43 display: none;
44 position: fixed; 44 position: fixed;
45 - top: 20%; 45 + top: 100px;
46 right: 0; 46 right: 0;
47 left: 0; 47 left: 0;
48 margin-right: auto; 48 margin-right: auto;
@@ -92,7 +92,7 @@ @@ -92,7 +92,7 @@
92 92
93 <template> 93 <template>
94 94
95 - <div class="button-container"> 95 + <div class="button-container" style$="display: {{buttonDisplay}};">
96 <span on-click="_onOpenClick"> 96 <span on-click="_onOpenClick">
97 <iron-icon class="myspace" icon="icons:folder-open"></iron-icon> 97 <iron-icon class="myspace" icon="icons:folder-open"></iron-icon>
98 <!--create-new-folder--> 98 <!--create-new-folder-->
@@ -136,6 +136,11 @@ @@ -136,6 +136,11 @@
136 searchFunction: { 136 searchFunction: {
137 type: String, 137 type: String,
138 notify: true 138 notify: true
  139 + },
  140 +
  141 + buttonDisplay: {
  142 + type: String,
  143 + value: "none"
139 } 144 }
140 }, 145 },
141 146
controllets/paper-card-controllet/paper-card-controllet.html
@@ -113,9 +113,9 @@ @@ -113,9 +113,9 @@
113 113
114 <paper-material id="paper_card_container" elevation="{{elevation}}"> 114 <paper-material id="paper_card_container" elevation="{{elevation}}">
115 115
116 - <paper-fab class="modify" mini icon="create" on-click="_handleModifyClick"></paper-fab> 116 + <paper-fab id="card_modify" class="modify" mini icon="create" on-click="_handleModifyClick"></paper-fab>
117 117
118 - <paper-fab class="delete" mini icon="delete" on-click="_handleDeleteClick"></paper-fab> 118 + <paper-fab id="card_delete" class="delete" mini icon="delete" on-click="_handleDeleteClick"></paper-fab>
119 119
120 <div id="content"> 120 <div id="content">
121 <content></content> 121 <content></content>
@@ -127,19 +127,19 @@ @@ -127,19 +127,19 @@
127 127
128 <template is="dom-if" if="{{checkType(cardType, 'link')}}"> 128 <template is="dom-if" if="{{checkType(cardType, 'link')}}">
129 129
130 - <paper-fab class="open" mini icon="link" on-click="_handleOpenClick"></paper-fab> 130 + <paper-fab id="card_open_link" class="open" mini icon="link" on-click="_handleOpenClick"></paper-fab>
131 131
132 </template> 132 </template>
133 133
134 <template is="dom-if" if="{{checkType(cardType, 'text')}}"> 134 <template is="dom-if" if="{{checkType(cardType, 'text')}}">
135 135
136 - <paper-fab class="open" mini icon="text-format" on-click="_handleOpenClick"></paper-fab> 136 + <paper-fab id="card_open_text" class="open" mini icon="text-format" on-click="_handleOpenClick"></paper-fab>
137 137
138 </template> 138 </template>
139 139
140 <template is="dom-if" if="{{checkType(cardType, 'datalet')}}"> 140 <template is="dom-if" if="{{checkType(cardType, 'datalet')}}">
141 141
142 - <paper-fab class="open" mini icon="assessment" on-click="_handleOpenClick"></paper-fab> 142 + <paper-fab id="card_open_datalet" class="open" mini icon="assessment" on-click="_handleOpenClick"></paper-fab>
143 143
144 </template> 144 </template>
145 145
@@ -202,7 +202,21 @@ @@ -202,7 +202,21 @@
202 this.$.content.style.backgroundColor = "#FFFFCC"; 202 this.$.content.style.backgroundColor = "#FFFFCC";
203 } 203 }
204 $(this.$.fullscreen_container).perfectScrollbar(); 204 $(this.$.fullscreen_container).perfectScrollbar();
  205 +
  206 + this._translate();
  207 + },
  208 +
  209 + _translate: function(){
205 ln["ln"] = ODE.user_language; 210 ln["ln"] = ODE.user_language;
  211 +
  212 + this.$.card_modify.setAttribute("title", ln["modify_"+ln["ln"]]);
  213 + this.$.card_delete.setAttribute("title", ln["delete_"+ln["ln"]]);
  214 + if(this.checkType(this.cardType, 'link'))
  215 + this.$$("#card_open_link").setAttribute("title", ln["open_"+ln["ln"]]);
  216 + if(this.checkType(this.cardType, 'text'))
  217 + this.$$("#card_open_text").setAttribute("title", ln["open_"+ln["ln"]]);
  218 + if(this.checkType(this.cardType, 'datalet'))
  219 + this.$$("#card_open_datalet").setAttribute("title", ln["open_"+ln["ln"]]);
206 }, 220 },
207 221
208 _changeWidth: function(){ 222 _changeWidth: function(){
locales/paper-card-ln.js
1 ln = []; 1 ln = [];
2 2
3 -ln["modify_it"] = "Modify card";  
4 -ln["delete_it"] = "Delete card";  
5 -ln["open_it"] = "Open preview"; 3 +ln["modify_it"] = "Modifica card";
  4 +ln["delete_it"] = "Elimina card";
  5 +ln["open_it"] = "Apri anteprima";
6 6
7 ln["modify_en"] = "Modify card"; 7 ln["modify_en"] = "Modify card";
8 ln["delete_en"] = "Delete card"; 8 ln["delete_en"] = "Delete card";