]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - client/src/app/+videos/+video-edit/video-add.component.scss
Add alert and hide upload view when no upload is possible (#2966)
authorKim <1877318+kimsible@users.noreply.github.com>
Tue, 28 Jul 2020 13:18:38 +0000 (15:18 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2020 13:18:38 +0000 (15:18 +0200)
commitdfe3f7b72ef46401206f6f461077a7984a0c72f0
tree775a747f2dd4bc098afc2ec254792e2e8e8cbbb4
parent0579dee3b29e301838387f53b91b58bff2ffb19a
Add alert and hide upload view when no upload is possible (#2966)

* Add alert and hide upload view when no upload is possible

* Add about instance link to alert

* Hide videos and imports links when no upload is possible

* Correct curly spacing lint

* Put logic canUpload to User model + add isHidden param to to-menu-dropdown

* Use canSeeVideoLinks from user model

* Rename and change logic canUpload to isUploadDisabled

* Use isDisplayed() method intead of isHidden value

* Refactor client and check videos count using quota

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Co-authored-by: Chocobozzz <me@florianbigard.com>
client/src/app/+admin/admin.component.ts
client/src/app/+my-account/my-account.component.ts
client/src/app/+videos/+video-edit/video-add.component.html
client/src/app/+videos/+video-edit/video-add.component.scss
client/src/app/+videos/+video-edit/video-add.component.ts
client/src/app/core/auth/auth-user.model.ts
client/src/app/core/users/user.model.ts
client/src/app/menu/menu.component.html
client/src/app/menu/menu.component.ts
client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html
client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts