Skip to content

Commit

Permalink
Merge branch 'master' into 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 committed Feb 20, 2025
2 parents 7a94d66 + 90a4cf4 commit 6d8a616
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 4 additions & 3 deletions frontend/src/components/dialog/transfer-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ class TransferDialog extends React.Component {
constructor(props) {
super(props);
this.state = {
options: [],
selectedOption: null,
errorMsg: [],
transferToUser: true,
transferToGroup: false,
reshare: false,
activeTab: !this.props.isDepAdminTransfer ? TRANS_USER : TRANS_DEPART
};
this.options = [];
this.userSelect = React.createRef();
}

Expand Down Expand Up @@ -83,14 +83,15 @@ class TransferDialog extends React.Component {
}

updateOptions = (departmentsRes) => {
this.options = departmentsRes.data.map(item => {
const options = departmentsRes.data.map(item => {
let option = {
value: item.name,
email: item.email,
label: item.name,
};
return option;
});
this.setState({ options });
};

onClick = () => {
Expand Down Expand Up @@ -182,7 +183,7 @@ class TransferDialog extends React.Component {
hideSelectedOptions={true}
components={makeAnimated()}
placeholder={gettext('Select a department')}
options={this.options}
options={this.state.options}
onChange={this.handleSelectChange}
value={this.state.selectedOption}
className="transfer-repo-select-department"
Expand Down
6 changes: 3 additions & 3 deletions scripts/seaf-fuse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function validate_seafile_data_dir () {
}

function validate_already_running () {
if pid=$(pgrep -f "seaf-fuse" 2>/dev/null); then
if pid=$(pgrep -f "bin/seaf-fuse" 2>/dev/null); then
echo "seaf-fuse is already running, pid $pid"
echo
exit 1;
Expand Down Expand Up @@ -111,7 +111,7 @@ function start_seaf_fuse () {
sleep 2

# check if seaf-fuse started successfully
if ! pgrep -f "seaf-fuse" 2>/dev/null 1>&2; then
if ! pgrep -f "bin/seaf-fuse" 2>/dev/null 1>&2; then
echo "Failed to start seaf-fuse"
exit 1;
fi
Expand All @@ -121,7 +121,7 @@ function start_seaf_fuse () {
}

function stop_seaf_fuse() {
if ! pgrep -f "seaf-fuse" 2>/dev/null 1>&2; then
if ! pgrep -f "bin/seaf-fuse" 2>/dev/null 1>&2; then
echo "seaf-fuse not running yet"
return 1;
fi
Expand Down
2 changes: 0 additions & 2 deletions scripts/seaf-import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function check_component_running() {
fi
}

<<'COMMENT'
function validate_already_running () {
if pid=$(pgrep -f "seafile-monitor.sh" 2>/dev/null); then
echo "seafile server is still running, stop it by \"seafile.sh stop\""
Expand All @@ -59,7 +58,6 @@ function validate_already_running () {
check_component_running "seaf-server" "seaf-server"
check_component_running "seafdav" "wsgidav.server.server_cli"
}
COMMENT

function run_seaf_import () {
validate_seafile_data_dir;
Expand Down

0 comments on commit 6d8a616

Please sign in to comment.