Browse Source

Very small UI improvements.

pull/337/head
Sebastian Stehle 8 years ago
parent
commit
c57419930b
  1. 4
      src/Squidex.Domain.Apps.Entities/Apps/Commands/AssignContributor.cs
  2. 2
      src/Squidex.Domain.Apps.Entities/Apps/Guards/GuardAppContributors.cs
  3. 2
      src/Squidex.Domain.Apps.Entities/Backup/RestoreGrain.cs
  4. 2
      src/Squidex/app/features/content/pages/content/content-history.component.scss
  5. 37
      src/Squidex/app/features/dashboard/pages/dashboard-page.component.scss
  6. 4
      src/Squidex/app/shared/components/history-list.component.scss

4
src/Squidex.Domain.Apps.Entities/Apps/Commands/AssignContributor.cs

@ -15,6 +15,8 @@ namespace Squidex.Domain.Apps.Entities.Apps.Commands
public string Role { get; set; } = Roles.Developer;
public bool FromRestore { get; set; }
public bool IsRestore { get; set; }
public bool IsInviting { get; set; }
}
}

2
src/Squidex.Domain.Apps.Entities/Apps/Guards/GuardAppContributors.cs

@ -44,7 +44,7 @@ namespace Squidex.Domain.Apps.Entities.Apps.Guards
command.ContributorId = user.Id;
if (string.Equals(command.ContributorId, command.Actor?.Identifier, StringComparison.OrdinalIgnoreCase) && !command.FromRestore)
if (string.Equals(command.ContributorId, command.Actor?.Identifier, StringComparison.OrdinalIgnoreCase) && !command.IsRestore)
{
throw new DomainForbiddenException("You cannot change your own role.");
}

2
src/Squidex.Domain.Apps.Entities/Backup/RestoreGrain.cs

@ -251,7 +251,7 @@ namespace Squidex.Domain.Apps.Entities.Backup
Actor = actor,
AppId = CurrentJob.AppId,
ContributorId = actor.Identifier,
FromRestore = true,
IsRestore = true,
Role = Role.Owner
});

2
src/Squidex/app/features/content/pages/content/content-history.component.scss

@ -26,6 +26,6 @@
&-created {
font-weight: normal;
font-size: .75rem;
margin: .375rem 0;
margin: .25rem 0;
}
}

37
src/Squidex/app/features/dashboard/pages/dashboard-page.component.scss

@ -105,41 +105,4 @@
.app-name {
color: $color-title;
}
.event {
& {
@include flex-box;
margin-bottom: 1rem;
}
&-main {
@include flex-grow(1);
}
&-load {
& {
font-size: .9rem;
font-weight: normal;
cursor: pointer;
color: $color-theme-blue !important;
}
&:focus,
&:hover {
text-decoration: underline !important;
}
}
&-left {
min-width: 2.8rem;
max-width: 2.8rem;
margin-top: .25rem;
}
&-created {
font-size: .65rem;
font-weight: normal;
color: $color-text-decent;
}
}

4
src/Squidex/app/shared/components/history-list.component.scss

@ -27,10 +27,6 @@
margin-bottom: 1.5rem;
}
&-message {
margin-bottom: .375rem;
}
&-created {
font-size: .75rem;
}

Loading…
Cancel
Save