<ng-template #modal let-hide="close">
<div class="modal-header">
<h4 i18n class="modal-title">Settings</h4>
+ <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
</div>
<div class="modal-body">
showModal () {
this.inputValue = ''
- this.openedModal = this.modalService.open(this.confirmModal)
+ this.openedModal = this.modalService.open(this.confirmModal, { centered: true })
this.openedModal.result
.then(() => this.confirmService.confirmResponse.next(true))
-<div class="input-group">
+<div class="input-group input-group-sm">
<input #urlInput (click)="urlInput.select()" type="text" class="form-control readonly" readonly [value]="value" />
<div class="input-group-append">
.header,
.dropdown-item,
.input-container {
- padding: 6px 24px 10px 24px;
+ padding: 8px 24px;
}
.header {
}
.playlist {
- display: flex;
+ display: inline-flex;
cursor: pointer;
my-peertube-checkbox {
margin-right: 10px;
+ align-self: center;
}
.display-name {
<div class="form-group" *ngIf="video.isLocal">
<my-peertube-checkbox
inputName="unfederate" formControlName="unfederate"
- i18n-labelText labelText="Unfederate the video (ask for its deletion from the remote instances)"
- ></my-peertube-checkbox>
+ i18n-labelText labelText="Unfederate the video"
+ >
+ <ng-container ngProjectAs="description">
+ <span i18n>This will ask remote instances to delete it</span>
+ </ng-container>
+ </my-peertube-checkbox>
</div>
<div class="form-group inputs">
-import { AfterViewInit, Component, EventEmitter, Input, OnChanges, Output, ViewChild } from '@angular/core'
+import { Component, EventEmitter, Input, OnChanges, Output, ViewChild } from '@angular/core'
import { I18n } from '@ngx-translate/i18n-polyfill'
import { DropdownAction, DropdownButtonSize, DropdownDirection } from '@app/shared/buttons/action-dropdown.component'
-import { AuthService, ConfirmService, Notifier, ServerService } from '@app/core'
-import { BlocklistService } from '@app/shared/blocklist'
+import { AuthService, ConfirmService, Notifier } from '@app/core'
import { Video } from '@app/shared/video/video.model'
import { VideoService } from '@app/shared/video/video.service'
import { VideoDetails } from '@app/shared/video/video-details.model'
private notifier: Notifier,
private confirmService: ConfirmService,
private videoBlacklistService: VideoBlacklistService,
- private serverService: ServerService,
private screenService: ScreenService,
private videoService: VideoService,
- private blocklistService: BlocklistService,
private redundancyService: RedundancyService,
private i18n: I18n
) { }
<ng-template #visitorModal let-modal>
<div class="modal-header">
<h4 class="modal-title" id="modal-basic-title" i18n>You are one step away from commenting</h4>
- <button type="button" class="close" aria-label="Close" (click)="hideVisitorModal()"></button>
+ <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hideVisitorModal()"></my-global-icon>
</div>
<div class="modal-body">
<span i18n>
- If you have an account on this instance, you can login:
- </span>
- <span class="btn btn-sm mx-3" role="button" (click)="gotoLogin()" i18n>login to comment</span>
- <span i18n>
- Otherwise, you can comment using an account on any ActivityPub-compatible instance.
+ You can comment using an account on any ActivityPub-compatible instance.
On most platforms, you can find the video by typing its URL in the search bar and then comment it
from within the software's interface.
</span>
<span i18n class="action-button action-button-cancel" role="button" (click)="hideVisitorModal()">
Cancel
</span>
+
+ <input
+ type="submit" i18n-value value="Login to comment" class="action-button-submit"
+ (click)="gotoLogin()"
+ >
</div>
</ng-template>
@include peertube-select-container(200px);
}
-.action-button-cancel {
- margin-right: 0 !important;
-}
-
.qr-code-group {
text-align: center;
}
}
my-global-icon {
- @include icon(24px);
+ @include icon(22px);
position: relative;
- top: 3px;
+ top: 5px;
float: right;
margin: 0;
padding: 0;
- opacity: 1;
+ opacity: .5;
}
}
.action-button-cancel {
@include peertube-button;
- @include grey-button;
+ @include tertiary-button;
display: inline-block;
margin-right: 10px;
}
}
+@mixin tertiary-button {
+ color: $grey-foreground-color;
+ background-color: transparent;
+
+ &[disabled], &.disabled {
+ cursor: default;
+ }
+
+ my-global-icon {
+ @include apply-svg-color(transparent)
+ }
+}
+
@mixin grey-button {
&, &:active, &:focus {
background-color: $grey-background-color;