shorten url changes

This commit is contained in:
venbatechnologies@gmail.com 2021-12-15 13:47:19 +05:30
parent ac4ffb1ef6
commit 40a0f5ab1d
6 changed files with 48 additions and 3 deletions

View File

@ -0,0 +1,3 @@
<p>
otp works!
</p>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { OtpComponent } from './otp.component';
describe('OtpComponent', () => {
let component: OtpComponent;
let fixture: ComponentFixture<OtpComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ OtpComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(OtpComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-otp',
templateUrl: './otp.component.html',
styleUrls: ['./otp.component.scss']
})
export class OtpComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -17,6 +17,7 @@ import { ForgotPasswordComponent } from './forgot-password/forgot-password.compo
import { LockScreenComponent } from './lockscreen/lockscreen.component'; import { LockScreenComponent } from './lockscreen/lockscreen.component';
import { SessionRoutes } from './session.routing'; import { SessionRoutes } from './session.routing';
import { OtpComponent } from './otp/otp.component';
@NgModule({ @NgModule({
imports: [ imports: [
@ -38,6 +39,7 @@ import { SessionRoutes } from './session.routing';
RegisterComponent, RegisterComponent,
ForgotPasswordComponent, ForgotPasswordComponent,
LockScreenComponent, LockScreenComponent,
OtpComponent,
] ]
}) })

View File

@ -45,8 +45,8 @@
<p *ngIf="item.status" style="color:white;margin:0px;font-size:14px;">{{item.status}}</p> <p *ngIf="item.status" style="color:white;margin:0px;font-size:14px;">{{item.status}}</p>
</div> </div>
<div fxLayout="column" align="end" fxLayoutAlign="flex-end"> <div fxLayout="column" align="end" fxLayoutAlign="flex-end">
<button *ngIf="item.url != '' && item.url" align="end" style="float: right" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Copy Link" <button *ngIf="item.shorturl != '' && item.shorturl" align="end" style="float: right" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Copy Link"
matTooltipPosition="right" (click)="_pd.copyToClipBoard(item.url)"> matTooltipPosition="right" (click)="_pd.copyToClipBoard(item.shorturl)">
<mat-icon>link</mat-icon> <mat-icon>link</mat-icon>
</button> </button>