mirror of
https://github.com/getredash/redash.git
synced 2026-05-10 15:00:16 -04:00
* Update DynamicForm export * Move UserShow to users folder * Migrate User profile header and create DynamicForm for basic data * Update UserShow to use UserProfile prop * Add API Key input * Add handler to regenerate API Key button * Handle user profile save * Add readOnly prop to DynamicForm and begin disabled user behavior * Add Change Password Modal * Remove action buttons for disabled users * Add send password reset behavior * Add minLength and password comparison to Password Modal * Resend Invitation button * Add Convert User Info * Fix UserShow test * Some code updates * Add enable/disable user button * Add UserPolicy as an idea * Remove UserPolicy * Create Edit Profile spec * Move User profile screenshot to Edit Profile Spec * Add tests for saving user and changing password errors * CC is back :) - Fix trailing spaces * Add test for succesful password update * A few improvements from code review * Remove Toggle User button when seeing your own profile * Create InputWithCopy * Fix possible errors when network is off and improve Email not sent alert * Add default response object for $http possible errors * Changes in UserEdit - removed onClick from methods name - regenerate API Key now uses InputWithCopy - Password title added * Update UserEdit render behavior and styling - Password title changed to h5 - change rendering rules for actions - Password modal is now closed when password is changed - change DynamicForm readOnly to the fields and add hideSubmitButton * Create ChangePasswordDialog and update UserEdit * Fix possible console error * Remove password match assertion from spec * Fix typo
36 lines
753 B
JavaScript
36 lines
753 B
JavaScript
import React from 'react';
|
|
import { react2angular } from 'react2angular';
|
|
import { UserProfile } from '../proptypes';
|
|
|
|
export const UserShow = ({ user: { name, email, profileImageUrl } }) => (
|
|
<div className="col-md-4 col-md-offset-4 profile__container">
|
|
<img
|
|
alt="profile"
|
|
src={profileImageUrl}
|
|
className="profile__image"
|
|
width="40"
|
|
/>
|
|
|
|
<h3 className="profile__h3">{name}</h3>
|
|
|
|
<hr />
|
|
|
|
<dl className="profile__dl">
|
|
<dt>Name:</dt>
|
|
<dd>{name}</dd>
|
|
<dt>Email:</dt>
|
|
<dd>{email}</dd>
|
|
</dl>
|
|
</div>
|
|
);
|
|
|
|
UserShow.propTypes = {
|
|
user: UserProfile.isRequired,
|
|
};
|
|
|
|
export default function init(ngModule) {
|
|
ngModule.component('userShow', react2angular(UserShow));
|
|
}
|
|
|
|
init.init = true;
|