Fixed file names for style guide and event propagation when deleting
domain
This commit is contained in:
parent
2bd996fe10
commit
6b78678c45
|
@ -1,9 +1,10 @@
|
|||
import { StopPropagateClickDirective } from './utils/stop-propagate-click.directive';
|
||||
import { PagesizeComponent } from './partials/pagesize/pagesize.component';
|
||||
import { PagingComponent } from './partials/paging/paging.component';
|
||||
import { DomainsOperation } from './operations/domains.operations';
|
||||
import { PasswordOperation } from './operations/password.operations';
|
||||
import { AuthGuard } from './services/auth-guard.service';
|
||||
import { FocusDirective } from './utils/Focus.directive';
|
||||
import { FocusDirective } from './utils/focus.directive';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
|
@ -46,7 +47,8 @@ import { SelectComponent } from './partials/select/select.component';
|
|||
PagesizeComponent,
|
||||
EditSlaveComponent,
|
||||
EditAuthComponent,
|
||||
SelectComponent
|
||||
SelectComponent,
|
||||
StopPropagateClickDirective
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
<td>{{ domain.type }}</td>
|
||||
<td>{{ domain.records }}</td>
|
||||
<td *ngIf="gs.isAdmin">
|
||||
<app-fa-icon class="cursor-pointer" icon="trash" (click)="onDeleteDomain(domain)"></app-fa-icon>
|
||||
<app-fa-icon class="cursor-pointer" icon="trash" appStopPropagateClick (click)="onDeleteDomain(domain)"></app-fa-icon>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { PasswordOperation } from './../../operations/password.operations';
|
||||
import { PasswordValidationUtil } from './../../utils/PasswordValidation.util';
|
||||
import { PasswordValidationUtil } from './../../utils/password-validation.util';
|
||||
import { FormGroup, Validators, FormBuilder } from '@angular/forms';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
|
|
11
frontend/src/app/utils/stop-propagate-click.directive.ts
Normal file
11
frontend/src/app/utils/stop-propagate-click.directive.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { Directive, HostListener } from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
selector: '[appStopPropagateClick]'
|
||||
})
|
||||
export class StopPropagateClickDirective {
|
||||
@HostListener('click', ['$event'])
|
||||
public onClick(event: any): void {
|
||||
event.stopPropagation();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue