Fixed file names for style guide and event propagation when deleting

domain
This commit is contained in:
Lukas Metzger 2018-04-09 17:25:54 +02:00
parent 2bd996fe10
commit 6b78678c45
6 changed files with 17 additions and 4 deletions

View file

@ -1,9 +1,10 @@
import { StopPropagateClickDirective } from './utils/stop-propagate-click.directive';
import { PagesizeComponent } from './partials/pagesize/pagesize.component'; import { PagesizeComponent } from './partials/pagesize/pagesize.component';
import { PagingComponent } from './partials/paging/paging.component'; import { PagingComponent } from './partials/paging/paging.component';
import { DomainsOperation } from './operations/domains.operations'; import { DomainsOperation } from './operations/domains.operations';
import { PasswordOperation } from './operations/password.operations'; import { PasswordOperation } from './operations/password.operations';
import { AuthGuard } from './services/auth-guard.service'; 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 { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms'; import { ReactiveFormsModule } from '@angular/forms';
@ -46,7 +47,8 @@ import { SelectComponent } from './partials/select/select.component';
PagesizeComponent, PagesizeComponent,
EditSlaveComponent, EditSlaveComponent,
EditAuthComponent, EditAuthComponent,
SelectComponent SelectComponent,
StopPropagateClickDirective
], ],
imports: [ imports: [
BrowserModule, BrowserModule,

View file

@ -39,7 +39,7 @@
<td>{{ domain.type }}</td> <td>{{ domain.type }}</td>
<td>{{ domain.records }}</td> <td>{{ domain.records }}</td>
<td *ngIf="gs.isAdmin"> <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> </td>
</tr> </tr>
</tbody> </tbody>

View file

@ -1,5 +1,5 @@
import { PasswordOperation } from './../../operations/password.operations'; 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 { FormGroup, Validators, FormBuilder } from '@angular/forms';
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';

View 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();
}
}