Commit 0d52e9fcd9a0b9dea1e54b6214f59febf8a948c5

Authored by Vladyslav_Prykhodko
1 parent ed3c57d1

Add style rule node

@@ -44,6 +44,14 @@ @@ -44,6 +44,14 @@
44 </div> 44 </div>
45 </section> 45 </section>
46 <section *ngIf="ruleNode.component.type === ruleNodeType.RULE_CHAIN"> 46 <section *ngIf="ruleNode.component.type === ruleNodeType.RULE_CHAIN">
  47 + <div class="tb-details-buttons" fxLayout.xs="column">
  48 + <button mat-raised-button color="primary"
  49 + [disabled]="(isLoading$ | async)"
  50 + (click)="onEntityAction($event, 'disableAccount')"
  51 + [fxShow]="!isEdit && isUserCredentialsEnabled()">
  52 + {{'user.disable-account' | translate }}
  53 + </button>
  54 + </div>
47 <tb-entity-autocomplete required 55 <tb-entity-autocomplete required
48 [excludeEntityIds]="[ruleChainId]" 56 [excludeEntityIds]="[ruleChainId]"
49 [entityType]="entityType.RULE_CHAIN" 57 [entityType]="entityType.RULE_CHAIN"
@@ -171,26 +171,40 @@ @@ -171,26 +171,40 @@
171 171
172 .fc-edit { 172 .fc-edit {
173 .fc-nodeedit, 173 .fc-nodeedit,
174 - .fc-nodedelete,  
175 - .fc-nodeopen { 174 + .fc-nodedelete {
176 box-sizing: content-box; 175 box-sizing: content-box;
177 border: solid 2px #fff; 176 border: solid 2px #fff;
178 background: #f83e05; 177 background: #f83e05;
179 outline: none; 178 outline: none;
180 } 179 }
  180 + }
181 181
182 - .fc-nodeopen{  
183 - top: 30px;  
184 - right: -14px;  
185 -  
186 - mat-icon{  
187 - width: 20px;  
188 - min-width: 20px;  
189 - height: 20px;  
190 - min-height: 20px;  
191 - font-size: 18px;  
192 - line-height: 18px;  
193 - } 182 + .fc-nodeopen{
  183 + display: block;
  184 + position: absolute;
  185 + top: 11px;
  186 + right: -12px;
  187 + border: 1px solid #FFFFFF;
  188 + border-radius: 4px;
  189 + line-height: 18px;
  190 + height: 22px;
  191 + width: 22px;
  192 + background: #886CB1;
  193 + color: #fff;
  194 + text-align: center;
  195 + cursor: pointer;
  196 + box-sizing: border-box;
  197 +
  198 + mat-icon{
  199 + width: 16px;
  200 + min-width: 16px;
  201 + height: 16px;
  202 + min-height: 16px;
  203 + font-size: 16px;
  204 + }
  205 +
  206 + &:hover{
  207 + background-color: #4E2D7E;
194 } 208 }
195 } 209 }
196 210
@@ -59,8 +59,8 @@ @@ -59,8 +59,8 @@
59 &times; 59 &times;
60 </div> 60 </div>
61 </section> 61 </section>
62 - <section class="fc-edit" *ngIf="node.component.type === RuleNodeType.RULE_CHAIN">  
63 - <div class="fc-nodeedit fc-nodeopen" (click)="openRuleChain($event, node)"> 62 + <section *ngIf="node.component.type === RuleNodeType.RULE_CHAIN && modelservice.isEditable()">
  63 + <div class="fc-nodeopen" (click)="openRuleChain($event, node)">
64 <mat-icon class="material-icons" svgIcon="mdi:login"></mat-icon> 64 <mat-icon class="material-icons" svgIcon="mdi:login"></mat-icon>
65 </div> 65 </div>
66 </section> 66 </section>
@@ -40,8 +40,7 @@ @@ -40,8 +40,7 @@
40 40
41 :host-context(.fc-edit) { 41 :host-context(.fc-edit) {
42 .fc-nodeedit, 42 .fc-nodeedit,
43 - .fc-nodedelete,  
44 - .fc-nodeopen { 43 + .fc-nodedelete {
45 box-sizing: content-box; 44 box-sizing: content-box;
46 border: solid 2px #fff; 45 border: solid 2px #fff;
47 background: #f83e05; 46 background: #f83e05;