diff --git a/jslib b/jslib index ef897695e9..c0e7e588ed 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit ef897695e9b5bfecbfcbbd4ad3aec62b4ecdca25 +Subproject commit c0e7e588ed59832a6f579ff63d85bfcdfb400d78 diff --git a/src/app/app.module.ts b/src/app/app.module.ts index d476181231..50c2be5b0d 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -33,6 +33,7 @@ import { TwoFactorOptionsComponent } from './accounts/two-factor-options.compone import { TwoFactorComponent } from './accounts/two-factor.component'; import { AccountComponent } from './settings/account.component'; +import { AdjustStorageComponent } from './settings/adjust-storage.component'; import { ChangeEmailComponent } from './settings/change-email.component'; import { ChangePasswordComponent } from './settings/change-password.component'; import { DeauthorizeSessionsComponent } from './settings/deauthorize-sessions.component'; @@ -106,6 +107,7 @@ import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe'; declarations: [ AccountComponent, AddEditComponent, + AdjustStorageComponent, ApiActionDirective, AppComponent, AttachmentsComponent, diff --git a/src/app/settings/adjust-storage.component.html b/src/app/settings/adjust-storage.component.html new file mode 100644 index 0000000000..02c9eb2ba7 --- /dev/null +++ b/src/app/settings/adjust-storage.component.html @@ -0,0 +1,25 @@ +
diff --git a/src/app/settings/adjust-storage.component.ts b/src/app/settings/adjust-storage.component.ts new file mode 100644 index 0000000000..7ac6f6c337 --- /dev/null +++ b/src/app/settings/adjust-storage.component.ts @@ -0,0 +1,60 @@ +import { + Component, + EventEmitter, + Input, + Output, +} from '@angular/core'; + +import { ToasterService } from 'angular2-toaster'; +import { Angulartics2 } from 'angulartics2'; + +import { ApiService } from 'jslib/abstractions/api.service'; +import { I18nService } from 'jslib/abstractions/i18n.service'; + +import { StorageRequest } from 'jslib/models/request/storageRequest'; + +@Component({ + selector: 'app-adjust-storage', + templateUrl: 'adjust-storage.component.html', +}) +export class AdjustStorageComponent { + @Input() storageGbPrice = 0; + @Input() add = true; + @Input() user = true; + @Input() interval = 'year'; + @Output() onAdjusted = new EventEmitter