Moved ChangePassword to its own action.

- Fixes #246
- Changing preferred to display_name. Fixes #243
- Fixing a drone issue
This commit is contained in:
Dessalines 2021-04-08 21:59:34 -04:00
parent 16d81ec090
commit 7ebb96e608
7 changed files with 451 additions and 408 deletions

View file

@ -36,7 +36,7 @@ steps:
dockerfile: Dockerfile
repo: dessalines/lemmy-ui
tags:
- dev-linux-arm64
- dev-linux-amd64
username:
from_secret: docker_username
password:

View file

@ -68,7 +68,7 @@
"eslint-plugin-prettier": "^3.3.1",
"husky": "^6.0.0",
"iso-639-1": "^2.1.9",
"lemmy-js-client": "0.10.3",
"lemmy-js-client": "0.11.0-rc.4",
"lint-staged": "^10.5.4",
"mini-css-extract-plugin": "^1.4.1",
"node-fetch": "^2.6.1",

View file

@ -346,8 +346,8 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
{localUserView.person.avatar && showAvatars() && (
<PictrsImage src={localUserView.person.avatar} icon />
)}
{localUserView.person.preferred_username
? localUserView.person.preferred_username
{localUserView.person.display_name
? localUserView.person.display_name
: localUserView.person.name}
</span>
</Link>

View file

@ -34,11 +34,11 @@ export class PersonListing extends Component<PersonListingProps, any> {
let displayName = this.props.useApubName
? apubName
: person.preferred_username
? person.preferred_username
: person.display_name
? person.display_name
: apubName;
if (this.props.showApubName && !local && person.preferred_username) {
if (this.props.showApubName && !local && person.display_name) {
displayName = `${displayName} (${apubName})`;
}

File diff suppressed because it is too large Load diff

View file

@ -299,7 +299,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
<Icon icon="edit" classes="icon-inline" />
</span>
</li>
{!this.amCreator &&
{!this.amTopMod &&
(!this.state.showConfirmLeaveModTeam ? (
<li className="list-inline-item-action">
<span
@ -341,7 +341,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
</li>
</>
))}
{this.amCreator && (
{this.amTopMod && (
<li className="list-inline-item-action">
<span
class="pointer"
@ -488,9 +488,9 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
WebSocketService.Instance.send(wsClient.followCommunity(form));
}
private get amCreator(): boolean {
private get amTopMod(): boolean {
return (
this.props.community_view.creator.id ==
this.props.moderators[0].moderator.id ==
UserService.Instance.localUserView.person.id
);
}

View file

@ -5125,10 +5125,10 @@ lcid@^1.0.0:
dependencies:
invert-kv "^1.0.0"
lemmy-js-client@0.10.3:
version "0.10.3"
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.3.tgz#815fe3f49b696c010858331aafc3850318b9e15d"
integrity sha512-ay5RQZSfoErLYh+b3aHpjA34dH/8rlNUcZF3L5nN+1cp4UWC4qWl97XjUM52QFyRzHslFPeP8D99fpgVe4USIQ==
lemmy-js-client@0.11.0-rc.4:
version "0.11.0-rc.4"
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.11.0-rc.4.tgz#bd5652538309efac686aa10329b3a04fac6f85c2"
integrity sha512-7pCEEWkmaOoxxJ9+QSTVQFwThdjIWFp/mSs4c82TYs6tKAJsmfqzBkvSK9QVpSA2OOeYVWoThklKcrlmNV2d6A==
levn@^0.4.1:
version "0.4.1"