Skip to content

Commit

Permalink
add onedrive icon
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong committed Aug 22, 2023
1 parent 5f1df76 commit d6a9ba6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/onedrive/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"github.com/IceWhaleTech/CasaOS/internal/driver"
)

const ICONURL = "./img/driver/OneDrive.svg"

type Host struct {
Oauth string
Api string
Expand Down
5 changes: 5 additions & 0 deletions route/v1/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/IceWhaleTech/CasaOS-Common/utils/logger"
"github.com/IceWhaleTech/CasaOS/drivers/dropbox"
"github.com/IceWhaleTech/CasaOS/drivers/google_drive"
"github.com/IceWhaleTech/CasaOS/drivers/onedrive"
"github.com/IceWhaleTech/CasaOS/model"
"github.com/IceWhaleTech/CasaOS/pkg/utils/common_err"
"github.com/IceWhaleTech/CasaOS/pkg/utils/httper"
Expand Down Expand Up @@ -51,6 +52,10 @@ func ListStorages(c *gin.Context) {
if dataMap["type"] == "dropbox" {
r.MountPoints[i].Icon = dropbox.ICONURL
}
if dataMap["type"] == "onedrive" {

r.MountPoints[i].Icon = onedrive.ICONURL
}
r.MountPoints[i].Name = dataMap["username"]
}
list := []httper.MountPoint{}
Expand Down

0 comments on commit d6a9ba6

Please sign in to comment.